diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-22 01:07:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-22 01:07:13 +0200 |
commit | 6c563e370d0f2f3cf36f3b274e8fe1392ca7125f (patch) | |
tree | 8e9a7cd2e979bc6c956b863128086a342dd1a676 /include | |
parent | c47917865d5f40f9044dd8845814c591d801318d (diff) | |
download | busybox-w32-6c563e370d0f2f3cf36f3b274e8fe1392ca7125f.tar.gz busybox-w32-6c563e370d0f2f3cf36f3b274e8fe1392ca7125f.tar.bz2 busybox-w32-6c563e370d0f2f3cf36f3b274e8fe1392ca7125f.zip |
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 'include')
-rw-r--r-- | include/bb_archive.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 2329d025d..10969b567 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
@@ -77,6 +77,9 @@ typedef struct archive_handle_t { | |||
77 | off_t offset; | 77 | off_t offset; |
78 | 78 | ||
79 | /* Archiver specific. Can make it a union if it ever gets big */ | 79 | /* Archiver specific. Can make it a union if it ever gets big */ |
80 | #if ENABLE_FEATURE_TAR_LONG_OPTIONS | ||
81 | unsigned tar__strip_components; | ||
82 | #endif | ||
80 | #define PAX_NEXT_FILE 0 | 83 | #define PAX_NEXT_FILE 0 |
81 | #define PAX_GLOBAL 1 | 84 | #define PAX_GLOBAL 1 |
82 | #if ENABLE_TAR || ENABLE_DPKG || ENABLE_DPKG_DEB | 85 | #if ENABLE_TAR || ENABLE_DPKG || ENABLE_DPKG_DEB |