tar: add support for --strip-components=N
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 21 Oct 2015 23:07:13 +0000 (01:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 21 Oct 2015 23:07:13 +0000 (01:07 +0200)
commit6c563e370d0f2f3cf36f3b274e8fe1392ca7125f
tree8e9a7cd2e979bc6c956b863128086a342dd1a676
parentc47917865d5f40f9044dd8845814c591d801318d
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>
archival/libarchive/data_extract_all.c
archival/libarchive/get_header_tar.c
archival/tar.c
include/bb_archive.h
testsuite/tar.tests