aboutsummaryrefslogtreecommitdiff
path: root/coreutils/id.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-28 05:44:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-28 05:44:47 +0000
commit9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0 (patch)
tree34292ef12cab59b118e91a6c58844ae25f1bee94 /coreutils/id.c
parentba092336f00644c1233735bae4b81382309955d8 (diff)
downloadbusybox-w32-9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0.tar.gz
busybox-w32-9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0.tar.bz2
busybox-w32-9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0.zip
bb_xget[pw/gr]nam were horribly misnamed - fixed.
uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam
Diffstat (limited to 'coreutils/id.c')
-rw-r--r--coreutils/id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/id.c b/coreutils/id.c
index 66874a71e..35f945dba 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -62,8 +62,8 @@ int id_main(int argc, char **argv)
62 62
63 if (argv[optind]) { 63 if (argv[optind]) {
64 p = getpwnam(argv[optind]); 64 p = getpwnam(argv[optind]);
65 /* bb_xgetpwnam is needed because it exits on failure */ 65 /* xuname2uid is needed because it exits on failure */
66 uid = bb_xgetpwnam(argv[optind]); 66 uid = xuname2uid(argv[optind]);
67 gid = p->pw_gid; 67 gid = p->pw_gid;
68 /* in this case PRINT_REAL is the same */ 68 /* in this case PRINT_REAL is the same */
69 } 69 }