diff options
-rw-r--r-- | coreutils/logname.c | 5 | ||||
-rw-r--r-- | logname.c | 5 |
2 files changed, 4 insertions, 6 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"); } @@ -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"); } |