*
*/
-#include "internal.h"
+#include "busybox.h"
#include <stdio.h>
#include <pwd.h>
-static const char whoami_usage[] = "whoami\n\n"
- "Prints the user name associated with the current effective user id.\n";
-
extern int whoami_main(int argc, char **argv)
{
char *user = xmalloc(9);
puts(user);
exit(TRUE);
}
- fprintf(stderr, "%s: cannot find username for UID %u\n", argv[0],
- (unsigned) uid);
- exit(FALSE);
+ errorMsg("cannot find username for UID %u\n", (unsigned) uid);
+ return(FALSE);
}