summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/rpm.c4
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);
}