aboutsummaryrefslogtreecommitdiff
path: root/archival/rpm.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-17 02:43:14 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-17 02:43:14 +0200
commitd57d62686dac254e83fbc18f851c773ec16013d8 (patch)
tree3e22476c6f2d74208568d5d56a629a81e11589ea /archival/rpm.c
parent1166d7b1360285659aa7585e5c5bd4e1321aeeaf (diff)
downloadbusybox-w32-d57d62686dac254e83fbc18f851c773ec16013d8.tar.gz
busybox-w32-d57d62686dac254e83fbc18f851c773ec16013d8.tar.bz2
busybox-w32-d57d62686dac254e83fbc18f851c773ec16013d8.zip
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)
202 archive_handle->seek = seek_by_read; 202 archive_handle->seek = seek_by_read;
203 //archive_handle->action_header = header_list; 203 //archive_handle->action_header = header_list;
204 archive_handle->action_data = data_extract_all; 204 archive_handle->action_data = data_extract_all;
205 archive_handle->ah_flags = ARCHIVE_PRESERVE_DATE | ARCHIVE_CREATE_LEADING_DIRS 205 archive_handle->ah_flags = ARCHIVE_RESTORE_DATE | ARCHIVE_CREATE_LEADING_DIRS
206 /* compat: overwrite existing files. 206 /* compat: overwrite existing files.
207 * try "rpm -i foo.src.rpm" few times in a row - 207 * try "rpm -i foo.src.rpm" few times in a row -
208 * standard rpm will not complain. 208 * standard rpm will not complain.
209 * (TODO? real rpm creates "file;1234" and then renames it) */ 209 * (TODO? real rpm creates "file;1234" and then renames it) */
210 | ARCHIVE_EXTRACT_UNCONDITIONAL; 210 | ARCHIVE_UNLINK_OLD;
211 archive_handle->src_fd = fd; 211 archive_handle->src_fd = fd;
212 /*archive_handle->offset = 0; - init_handle() did it */ 212 /*archive_handle->offset = 0; - init_handle() did it */
213 213