diff options
author | Bernhard Reutner-Fischer | 2005-09-20 21:06:17 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2005-09-20 21:06:17 +0000 |
commit | d5bd137a247145afabfbc3a3c376ad8787381d8f (patch) | |
tree | e55887632741516332495c4fe7cf4169e71984c3 /loginutils | |
parent | f912ebb7405bcb6cbcdf952bdf2fc2310d93cb3a (diff) | |
download | busybox-d5bd137a247145afabfbc3a3c376ad8787381d8f.zip busybox-d5bd137a247145afabfbc3a3c376ad8787381d8f.tar.gz |
- rename libbb's password helpers as suggested in libbb.h
my_getpwnam -> bb_xgetpwnam /* dies on error */
my_getgrnam -> bb_xgetgrnam /* dies on error */
my_getgrgid -> bb_getgrgid
my_getpwuid -> bb_getpwuid
my_getug -> bb_getug
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/adduser.c | 2 | ||||
-rw-r--r-- | loginutils/passwd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 7fa05a0..eb98901 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -305,7 +305,7 @@ int adduser_main(int argc, char **argv) if (usegroup) { /* Add user to a group that already exists */ - pw.pw_gid = my_getgrnam(usegroup); + pw.pw_gid = bb_xgetgrnam(usegroup); /* exits on error */ } diff --git a/loginutils/passwd.c b/loginutils/passwd.c index c8940ee..5d8380d 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -168,7 +168,7 @@ extern int passwd_main(int argc, char **argv) bb_show_usage(); } } - myname = (char *) bb_xstrdup(my_getpwuid(NULL, getuid(), -1)); + myname = (char *) bb_xstrdup(bb_getpwuid(NULL, getuid(), -1)); /* exits on error */ if (optind < argc) { name = argv[optind]; |