diff options
author | Denys Vlasenko | 2015-10-22 01:07:13 +0200 |
---|---|---|
committer | Denys Vlasenko | 2015-10-22 01:07:13 +0200 |
commit | 6c563e370d0f2f3cf36f3b274e8fe1392ca7125f (patch) | |
tree | 8e9a7cd2e979bc6c956b863128086a342dd1a676 /archival/libarchive/get_header_tar.c | |
parent | c47917865d5f40f9044dd8845814c591d801318d (diff) | |
download | busybox-6c563e370d0f2f3cf36f3b274e8fe1392ca7125f.zip busybox-6c563e370d0f2f3cf36f3b274e8fe1392ca7125f.tar.gz |
tar: add support for --strip-components=N
function old new delta
data_extract_all 882 995 +113
tar_longopts 290 309 +19
tar_main 938 942 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 136/0) Total: 136 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/get_header_tar.c')
-rw-r--r-- | archival/libarchive/get_header_tar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c index fb68673..ac2be72 100644 --- a/archival/libarchive/get_header_tar.c +++ b/archival/libarchive/get_header_tar.c @@ -418,6 +418,7 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) /* Everything up to and including last ".." component is stripped */ overlapping_strcpy(file_header->name, strip_unsafe_prefix(file_header->name)); +//TODO: do the same for file_header->link_target? /* Strip trailing '/' in directories */ /* Must be done after mode is set as '/' is used to check if it's a directory */ |