Commit 40154800 authored by Claes Sjofors's avatar Claes Sjofors

syi_UserName returns current user instead of logged in user

parent 6b6d0fb9
...@@ -136,7 +136,7 @@ pwr_tStatus syi_UserName( char *user, int len) ...@@ -136,7 +136,7 @@ pwr_tStatus syi_UserName( char *user, int len)
{ {
char *p; char *p;
p = getlogin(); p = cuserid(0);
if ( !p) if ( !p)
return 0; return 0;
strncpy( user, p, len); strncpy( user, p, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment