summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko2015-10-22 01:07:13 +0200
committerDenys Vlasenko2015-10-22 01:07:13 +0200
commit6c563e370d0f2f3cf36f3b274e8fe1392ca7125f (patch)
tree8e9a7cd2e979bc6c956b863128086a342dd1a676 /include
parentc47917865d5f40f9044dd8845814c591d801318d (diff)
downloadbusybox-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 'include')
-rw-r--r--include/bb_archive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index 2329d02..10969b5 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -77,6 +77,9 @@ typedef struct archive_handle_t {
off_t offset;
/* Archiver specific. Can make it a union if it ever gets big */
+#if ENABLE_FEATURE_TAR_LONG_OPTIONS
+ unsigned tar__strip_components;
+#endif
#define PAX_NEXT_FILE 0
#define PAX_GLOBAL 1
#if ENABLE_TAR || ENABLE_DPKG || ENABLE_DPKG_DEB