From 373ca863f65de0c572faf80fab5586755d073fc8 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 8 Jan 2017 08:57:29 +0000 Subject: unzip: use data from local header rather than CDF The zip file referenced in this bug report: https://bugs.busybox.net/show_bug.cgi?id=9536 isn't extracted correctly with the upstream fix. --- archival/unzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archival/unzip.c b/archival/unzip.c index 7029f66c3..9ad03d0e2 100644 --- a/archival/unzip.c +++ b/archival/unzip.c @@ -627,7 +627,7 @@ int unzip_main(int argc, char **argv) cdf_offset = read_next_cdf(cdf_offset, &cdf_header); if (cdf_offset == 0) /* EOF? */ break; -# if 0 +# if 1 xlseek(zip_fd, SWAP_LE32(cdf_header.formatted.relative_offset_of_local_header) + 4, SEEK_SET); -- cgit v1.2.3-55-g6feb