bb_getpwuid, bb_getgrgid: change order of arguments to more intuitive one;

comment thoroughly when they die and when they dont.
This commit is contained in:
Denis Vlasenko
2007-07-27 11:20:10 +00:00
parent 661f6fad77
commit 3734b946bf
7 changed files with 68 additions and 87 deletions

View File

@ -19,7 +19,8 @@ int whoami_main(int argc, char **argv)
if (argc > 1)
bb_show_usage();
puts(bb_getpwuid(NULL, geteuid(), -1));
/* Will complain and die if username not found */
puts(bb_getpwuid(NULL, -1, geteuid()));
return fflush(stdout);
}