Date: Sun, 7 Nov 2010 10:58:40 -0800 From: Tim Kientzle <kientzle@FreeBSD.org> To: Anonymous <swell.k@gmail.com> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r214905 - in head/lib/libarchive: . test Message-ID: <F7F108E1-0BD7-4D1A-A434-23F1476484D5@FreeBSD.org> In-Reply-To: <86wroppyff.fsf@gmail.com> References: <201011070340.oA73ebRw013346@svn.freebsd.org> <86wroppyff.fsf@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 6, 2010, at 9:09 PM, Anonymous wrote: > Tim Kientzle <kientzle@FreeBSD.org> writes: >=20 >> Author: kientzle >> Date: Sun Nov 7 03:40:37 2010 >> New Revision: 214905 >> URL: http://svn.freebsd.org/changeset/base/214905 >>=20 >> Log: >> If the Zip reader doesn't see a PK signature block >> because there's inter-entry garbage, just scan forward >> to find the next one. This allows us to handle a lot >> of Zip archives that have been modified in-place. >=20 > It's unrelated but can you also look at archives produces by Mojo = Setup? >=20 > http://icculus.org/mojosetup/examples/ >=20 > $ /usr/bin/unzip duke3d-mojosetup-linux-x86.bin > Archive: duke3d-mojosetup-linux-x86.bin > unzip: Unrecognized archive format > zsh: exit 1 >=20 > $ LOCALBASE/bin/unzip duke3d-mojosetup-linux-x86.bin > Archive: duke3d-mojosetup-linux-x86.bin > warning [duke3d-mojosetup-linux-x86.bin]: 157716 extra bytes at = beginning or within zipfile > (attempting to process anyway) > creating: data/ > inflating: data/duke3d_readme.txt Libarchive currently doesn't support self-extracting Zip archives (the "157716 extra bytes" that Info-Zip mentions). There's a hack in libarchive's Zip reader that mostly supports one particular common type of self-extracting Zip archive, but it's not very easy to generalize. There are a couple of possible options for addressing this, but I won't have time to work on any of those any time soon. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F7F108E1-0BD7-4D1A-A434-23F1476484D5>