diff options
author | Denis Vlasenko | 2006-12-28 05:44:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-28 05:44:47 +0000 |
commit | 9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0 (patch) | |
tree | 34292ef12cab59b118e91a6c58844ae25f1bee94 /miscutils | |
parent | ba092336f00644c1233735bae4b81382309955d8 (diff) | |
download | busybox-9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0.zip busybox-9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0.tar.gz |
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 'miscutils')
-rw-r--r-- | miscutils/makedevs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 3bc1559..c25bdad 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c @@ -127,8 +127,8 @@ int makedevs_main(int argc, char **argv) continue; } - gid = (*group) ? get_ug_id(group, bb_xgetgrnam) : getgid(); - uid = (*user) ? get_ug_id(user, bb_xgetpwnam) : getuid(); + gid = (*group) ? get_ug_id(group, xgroup2gid) : getgid(); + uid = (*user) ? get_ug_id(user, xuname2uid) : getuid(); full_name = concat_path_file(rootdir, name); if (type == 'd') { |