diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-27 11:20:10 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-27 11:20:10 +0000 |
commit | 3734b946bfef55c8f63d367422da5c7aa7b972db (patch) | |
tree | 1bdd3e14523002dc8276d167b17f900e40fa6dff /coreutils/whoami.c | |
parent | 661f6fad77b672a5f6648b01275eb9ff19c59139 (diff) | |
download | busybox-w32-3734b946bfef55c8f63d367422da5c7aa7b972db.tar.gz busybox-w32-3734b946bfef55c8f63d367422da5c7aa7b972db.tar.bz2 busybox-w32-3734b946bfef55c8f63d367422da5c7aa7b972db.zip |
bb_getpwuid, bb_getgrgid: change order of arguments to more intuitive one;
comment thoroughly when they die and when they dont.
Diffstat (limited to 'coreutils/whoami.c')
-rw-r--r-- | coreutils/whoami.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index 156516fa7..3718358d5 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -19,7 +19,8 @@ int whoami_main(int argc, char **argv) | |||
19 | if (argc > 1) | 19 | if (argc > 1) |
20 | bb_show_usage(); | 20 | bb_show_usage(); |
21 | 21 | ||
22 | puts(bb_getpwuid(NULL, geteuid(), -1)); | 22 | /* Will complain and die if username not found */ |
23 | puts(bb_getpwuid(NULL, -1, geteuid())); | ||
23 | 24 | ||
24 | return fflush(stdout); | 25 | return fflush(stdout); |
25 | } | 26 | } |