commit | e8c55f42c12e45c7a2d72586a3738004ab94021c | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Wed Oct 25 19:09:03 2000 +0000 |
committer | Matt Kraai <kraai@debian.org> | Wed Oct 25 19:09:03 2000 +0000 |
tree | f5c2294a33ac714b607fc6f00797634a93847536 | |
parent | 2dab174daa01952147322197f7c1821217c5e7c5 [diff] [blame] |
Fixed error handling and TRUE/FALSE usage.
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index f3c21b3..44fbc95 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c
@@ -35,8 +35,7 @@ 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); }