diff options
-rw-r--r-- | coreutils/whoami.c | 5 | ||||
-rw-r--r-- | whoami.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index f3c21b3f5..44fbc950b 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv) | |||
35 | my_getpwuid(user, uid); | 35 | my_getpwuid(user, uid); |
36 | if (user) { | 36 | if (user) { |
37 | puts(user); | 37 | puts(user); |
38 | exit(TRUE); | 38 | return EXIT_SUCCESS; |
39 | } | 39 | } |
40 | errorMsg("cannot find username for UID %u\n", (unsigned) uid); | 40 | fatalError("cannot find username for UID %u\n", (unsigned) uid); |
41 | return(FALSE); | ||
42 | } | 41 | } |
@@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv) | |||
35 | my_getpwuid(user, uid); | 35 | my_getpwuid(user, uid); |
36 | if (user) { | 36 | if (user) { |
37 | puts(user); | 37 | puts(user); |
38 | exit(TRUE); | 38 | return EXIT_SUCCESS; |
39 | } | 39 | } |
40 | errorMsg("cannot find username for UID %u\n", (unsigned) uid); | 40 | fatalError("cannot find username for UID %u\n", (unsigned) uid); |
41 | return(FALSE); | ||
42 | } | 41 | } |