[Bug 243738] unzip cannot handle LZMA-compressed ZIP-entries
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 8 13:59:14 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243738
Hans Christian Woithe <chwoithe at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chwoithe at yahoo.com
--- Comment #2 from Hans Christian Woithe <chwoithe at yahoo.com> ---
I was also able to reproduce the problem.
It seems this was fixed in libarchive commit c8d40b27 issue #1257.
use the program above to create a test.zip file
$ echo "test" > test.txt
$ python3.6 ziplzma.py test.zip test.txt
$ rm test.txt
$ unzip -o test.zip
unzip: lzma unknown error 1
$ cd /tmp
$ git clone https://github.com/libarchive/libarchive.git
$ cd libarchive
$ git checkout c8d40b27
$ build/autogen.sh
$ ./configure
$ make
$ LD_PRELOAD="/tmp/libarchive/.libs/libarchive.so" unzip -o test.zip
This fix should be part of r356212.
So instead of the above procedure, you should be able make lib/archive and
LD_PRELOAD the generated library.
In my testing environment that's currently in /usr/obj/...
$ LD_PRELOAD="/usr/obj/.../amd64.amd64/lib/libarchive/libarchive.so" unzip -o
test.zip
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list