diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-17 04:43:14 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-17 04:43:14 +0400 |
commit | d57d62686dac254e83fbc18f851c773ec16013d8 (patch) | |
tree | 3e22476c6f2d74208568d5d56a629a81e11589ea /archival/dpkg.c | |
parent | 1166d7b1360285659aa7585e5c5bd4e1321aeeaf (diff) |
tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bits
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 781f1bb03..a9334df87 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -1531,7 +1531,7 @@ static void unpack_package(deb_file_t *deb_file) archive_handle->sub_archive->filter = filter_accept_list; archive_handle->sub_archive->action_data = data_extract_all_prefix; archive_handle->sub_archive->buffer = info_prefix; - archive_handle->sub_archive->ah_flags |= ARCHIVE_EXTRACT_UNCONDITIONAL; + archive_handle->sub_archive->ah_flags |= ARCHIVE_UNLINK_OLD; unpack_ar_archive(archive_handle); /* Run the preinst prior to extracting */ @@ -1542,7 +1542,7 @@ static void unpack_package(deb_file_t *deb_file) init_archive_deb_data(archive_handle); archive_handle->sub_archive->action_data = data_extract_all_prefix; archive_handle->sub_archive->buffer = (char*)"/"; /* huh? */ - archive_handle->sub_archive->ah_flags |= ARCHIVE_EXTRACT_UNCONDITIONAL; + archive_handle->sub_archive->ah_flags |= ARCHIVE_UNLINK_OLD; unpack_ar_archive(archive_handle); /* Create the list file */ |