diff options
Diffstat (limited to 'coreutils/logname.c')
-rw-r--r-- | coreutils/logname.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/logname.c b/coreutils/logname.c index 0924b24..3e10fba 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c @@ -32,8 +32,7 @@ extern int logname_main(int argc, char **argv) if (argc > 1) show_usage(); - my_getpwuid(user, geteuid()); - if (*user) { + if (my_getpwuid(user, geteuid())) { puts(user); return EXIT_SUCCESS; } |