busybox/archival
Eugene Rudoy c6f213ade4 unzip: fix content listing and filtering when -j is used
Original Info-ZIP's unzip uses unstripped filenames
while doing content listing and filtering, i.e.
 - in content listing mode -j is ignored completely
 - filtering is applied to non-stripped names, -j
   takes effect first while extracting the files

997ad2c64a strips path
components a little bit too early resulting in behavior
deviations.

Fix it by doing stripping after listing/filtering.

p.s. Info-ZIP's unzip behavior is the same as
     that of tar in --strip-components=NUM mode

Signed-off-by: Eugene Rudoy <gene.devel@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-11-09 12:45:50 +01:00
..
libarchive unlzma: fix SEGV, closes 10436 2017-10-27 15:37:03 +02:00
ar.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
bbunzip_test2.sh add tests for gunzip 2007-10-05 15:27:03 +00:00
bbunzip_test3.sh add tests for gunzip 2007-10-05 15:27:03 +00:00
bbunzip_test.sh add tests for gunzip 2007-10-05 15:27:03 +00:00
bbunzip.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
bzip2.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
Config.src config: deindent all help texts 2017-07-21 09:50:55 +02:00
cpio.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
dpkg_deb.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
dpkg.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
gzip.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
Kbuild.src cpio: implement -R/--owner 2015-10-16 17:24:46 +02:00
lzop.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
rpm.c rpm,rpm2cpio: do not compile not-configurred parts of rpm.c 2017-08-22 15:33:04 +02:00
rpm.h *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
tar_symlink_attack tar: postpone creation of symlinks with "suspicious" targets. Closes 8411 2017-07-24 17:20:13 +02:00
tar.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
unzip.c unzip: fix content listing and filtering when -j is used 2017-11-09 12:45:50 +01:00