X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=whoami.c;h=6a5dd2c04ef9b5bfe37ce5bd252b41ee80ef1cec;hb=46f44d24fcc25a5d6e13e0453485881bdf147e91;hp=f3c21b3f5a89886b49fee8ca2d219afa2fe81774;hpb=3570a34de46b1f7dedd16999bb1687e2d6b55d40;p=oweals%2Fbusybox.git diff --git a/whoami.c b/whoami.c index f3c21b3f5..6a5dd2c04 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); + error_msg_and_die("cannot find username for UID %u\n", (unsigned) uid); }