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 /archival/rpm.c | |
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 'archival/rpm.c')
-rw-r--r-- | archival/rpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/rpm.c b/archival/rpm.c index c0a1dee..deb87c1 100644 --- a/archival/rpm.c +++ b/archival/rpm.c @@ -348,8 +348,8 @@ static void fileaction_dobackup(char *filename, int fileref) static void fileaction_setowngrp(char *filename, int fileref) { int uid, gid; - uid = bb_xgetpwnam(rpm_getstr(TAG_FILEUSERNAME, fileref)); - gid = bb_xgetgrnam(rpm_getstr(TAG_FILEGROUPNAME, fileref)); + uid = xuname2uid(rpm_getstr(TAG_FILEUSERNAME, fileref)); + gid = xgroup2gid(rpm_getstr(TAG_FILEGROUPNAME, fileref)); chown(filename, uid, gid); } |