diff options
-rw-r--r-- | slstatus.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -643,8 +643,7 @@ uptime(void) static char * username(void) { - uid_t uid = geteuid(); - struct passwd *pw = getpwuid(uid); + struct passwd *pw = getpwuid(geteuid()); if (pw == NULL) { warn("Failed to get username"); |