Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'whoami.c')
-rw-r--r--whoami.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/whoami.c b/whoami.c
index f3c21b3f5..44fbc950b 100644
--- a/whoami.c
+++ b/whoami.c
@@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
- exit(TRUE);
+ return EXIT_SUCCESS;
}
- errorMsg("cannot find username for UID %u\n", (unsigned) uid);
- return(FALSE);
+ fatalError("cannot find username for UID %u\n", (unsigned) uid);
}