diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-23 13:45:18 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-23 13:45:18 +0100 |
commit | 6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44 (patch) | |
tree | 9fccf7ef8fdabd40aa048ae8a5048dd1035def13 /archival/libarchive/data_extract_to_command.c | |
parent | af36ba206f7cf0eef77a82af741766a2d03c51ad (diff) | |
download | busybox-w32-6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44.tar.gz busybox-w32-6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44.tar.bz2 busybox-w32-6111f967f5299d2eb82fb8eb4bf3b3a4272e3f44.zip |
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_to_command.c')
-rw-r--r-- | archival/libarchive/data_extract_to_command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/libarchive/data_extract_to_command.c b/archival/libarchive/data_extract_to_command.c index cc2ff7798..a2ce33b51 100644 --- a/archival/libarchive/data_extract_to_command.c +++ b/archival/libarchive/data_extract_to_command.c | |||
@@ -64,13 +64,13 @@ void FAST_FUNC data_extract_to_command(archive_handle_t *archive_handle) | |||
64 | file_header_t *file_header = archive_handle->file_header; | 64 | file_header_t *file_header = archive_handle->file_header; |
65 | 65 | ||
66 | #if 0 /* do we need this? ENABLE_FEATURE_TAR_SELINUX */ | 66 | #if 0 /* do we need this? ENABLE_FEATURE_TAR_SELINUX */ |
67 | char *sctx = archive_handle->tar__next_file_sctx; | 67 | char *sctx = archive_handle->tar__sctx[PAX_NEXT_FILE]; |
68 | if (!sctx) | 68 | if (!sctx) |
69 | sctx = archive_handle->tar__global_sctx; | 69 | sctx = archive_handle->tar__sctx[PAX_GLOBAL]; |
70 | if (sctx) { /* setfscreatecon is 4 syscalls, avoid if possible */ | 70 | if (sctx) { /* setfscreatecon is 4 syscalls, avoid if possible */ |
71 | setfscreatecon(sctx); | 71 | setfscreatecon(sctx); |
72 | free(archive_handle->tar__next_file_sctx); | 72 | free(archive_handle->tar__sctx[PAX_NEXT_FILE]); |
73 | archive_handle->tar__next_file_sctx = NULL; | 73 | archive_handle->tar__sctx[PAX_NEXT_FILE] = NULL; |
74 | } | 74 | } |
75 | #endif | 75 | #endif |
76 | 76 | ||