aboutsummaryrefslogtreecommitdiff
path: root/archival/rpm.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2009-09-17 02:43:14 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2009-09-17 02:43:14 +0200
commitd57d62686dac254e83fbc18f851c773ec16013d8 (patch)
tree3e22476c6f2d74208568d5d56a629a81e11589ea /archival/rpm.c
parent1166d7b1360285659aa7585e5c5bd4e1321aeeaf (diff)
downloadbusybox-d57d62686dac254e83fbc18f851c773ec16013d8.tar.gz
busybox-d57d62686dac254e83fbc18f851c773ec16013d8.tar.bz2
tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bits
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/rpm.c')
-rw-r--r--archival/rpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/rpm.c b/archival/rpm.c
index 569bcddf2..309b55a36 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -202,12 +202,12 @@ static void extract_cpio_gz(int fd)
archive_handle->seek = seek_by_read;
//archive_handle->action_header = header_list;
archive_handle->action_data = data_extract_all;
- archive_handle->ah_flags = ARCHIVE_PRESERVE_DATE | ARCHIVE_CREATE_LEADING_DIRS
+ archive_handle->ah_flags = ARCHIVE_RESTORE_DATE | ARCHIVE_CREATE_LEADING_DIRS
/* compat: overwrite existing files.
* try "rpm -i foo.src.rpm" few times in a row -
* standard rpm will not complain.
* (TODO? real rpm creates "file;1234" and then renames it) */
- | ARCHIVE_EXTRACT_UNCONDITIONAL;
+ | ARCHIVE_UNLINK_OLD;
archive_handle->src_fd = fd;
/*archive_handle->offset = 0; - init_handle() did it */