projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftpd: do not use nasty tricks for re-execing if we are on MMU machine.
[oweals/busybox.git]
/
coreutils
/
whoami.c
diff --git
a/coreutils/whoami.c
b/coreutils/whoami.c
index 3718358d5d195a4bde3c903061490761377ccf4a..0dbcba9553ef1d16ca4a01247cc1a288ecc5c370 100644
(file)
--- a/
coreutils/whoami.c
+++ b/
coreutils/whoami.c
@@
-13,14
+13,14
@@
/* This is a NOFORK applet. Be very careful! */
/* This is a NOFORK applet. Be very careful! */
-int whoami_main(int argc, char **argv);
-int whoami_main(int argc, char **argv)
+int whoami_main(int argc, char **argv)
MAIN_EXTERNALLY_VISIBLE
;
+int whoami_main(int argc, char **argv
UNUSED_PARAM
)
{
if (argc > 1)
bb_show_usage();
/* Will complain and die if username not found */
{
if (argc > 1)
bb_show_usage();
/* Will complain and die if username not found */
- puts(
bb_getpwuid(NULL, -1,
geteuid()));
+ puts(
xuid2uname(
geteuid()));
return fflush(stdout);
}
return fflush(stdout);
}