diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/logname.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/logname.c b/coreutils/logname.c index 09ee249..89c409f 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c @@ -33,8 +33,7 @@ extern int logname_main(int argc, char **argv) my_getpwuid(user, geteuid()); if (user) { puts(user); - exit(TRUE); + return EXIT_SUCCESS; } - errorMsg("no login name\n"); - return(FALSE); + fatalError("no login name\n"); } |