From 6c563e370d0f2f3cf36f3b274e8fe1392ca7125f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 22 Oct 2015 01:07:13 +0200 Subject: 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 --- include/bb_archive.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/bb_archive.h') 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 { 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 -- cgit v1.2.3