summaryrefslogtreecommitdiff
path: root/archival/libarchive/data_extract_all.c
diff options
context:
space:
mode:
authorDenys Vlasenko2012-02-23 13:45:18 +0100
committerDenys Vlasenko2012-02-23 13:45:18 +0100
commit6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44 (patch)
tree9fccf7ef8fdabd40aa048ae8a5048dd1035def13 /archival/libarchive/data_extract_all.c
parentaf36ba206f7cf0eef77a82af741766a2d03c51ad (diff)
downloadbusybox-6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44.zip
busybox-6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44.tar.gz
tar: add support for PAX-encoded path=LONGFILENAME
function old new delta get_header_tar 1478 1759 +281 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/data_extract_all.c')
-rw-r--r--archival/libarchive/data_extract_all.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/libarchive/data_extract_all.c b/archival/libarchive/data_extract_all.c
index f565e54..3f67b83 100644
--- a/archival/libarchive/data_extract_all.c
+++ b/archival/libarchive/data_extract_all.c
@@ -13,13 +13,13 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
int res;
#if ENABLE_FEATURE_TAR_SELINUX
- char *sctx = archive_handle->tar__next_file_sctx;
+ char *sctx = archive_handle->tar__sctx[PAX_NEXT_FILE];
if (!sctx)
- sctx = archive_handle->tar__global_sctx;
+ sctx = archive_handle->tar__sctx[PAX_GLOBAL];
if (sctx) { /* setfscreatecon is 4 syscalls, avoid if possible */
setfscreatecon(sctx);
- free(archive_handle->tar__next_file_sctx);
- archive_handle->tar__next_file_sctx = NULL;
+ free(archive_handle->tar__sctx[PAX_NEXT_FILE]);
+ archive_handle->tar__sctx[PAX_NEXT_FILE] = NULL;
}
#endif