Updated version to better match GNU gzip behavior. GNU zip will
not decompress a .zip file with multiple members unless the -c
option is specified (or via zcat/gzcat). Now we return an error
and don't extract the file, just like GNU gzip.
Also, our gzip did not honor the extension specified by
On Thu, Oct 13, 2022 at 02:14:28PM -0600, Todd C. Miller wrote:
> Comments or OKs?
Golly! Why not add the functionality to cat(1)? Or straight into the
shell as a built-in?
--
. ___ ___ . . ___
. \/ |\ |\ \
. _\_ /__ |-\ |-\ \__
On Thu, 13 Oct 2022 14:14:28 -0600, "Todd C. Miller" wrote:
> GNU gzip support uncompressing .zip files that contain a single
> member. This can be very convenient when dealing with email
> attachments that use zip instead of gzip to compress a single file
> (I'm looking at you Google). Below
On Fri, 14 Oct 2022 10:26:33 +1100, Jonathan Gray wrote:
> I can't think of another reason for the single file limit. It must be.
>
> With most of the changes under SMALL or not built, ramdisks still fit?
It should, none of the new code is compiled for the ramdisk version.
- todd
On Fri, Oct 14, 2022 at 09:41:18AM +1100, Jonathan Gray wrote:
> On Thu, Oct 13, 2022 at 02:14:28PM -0600, Todd C. Miller wrote:
> > GNU gzip support uncompressing .zip files that contain a single
> > member. This can be very convenient when dealing with email
> > attachments that use zip instead
On Fri, 14 Oct 2022 09:41:18 +1100, Jonathan Gray wrote:
> The extracted file has the name of the zip archive without '.zip'
> instead of the name of the file in the zip archive.
>
> Is that the behaviour of GNU gunzip? It isn't what I expected.
Yes, that is what GNU zip does too. If you use
On Thu, Oct 13, 2022 at 02:14:28PM -0600, Todd C. Miller wrote:
> GNU gzip support uncompressing .zip files that contain a single
> member. This can be very convenient when dealing with email
> attachments that use zip instead of gzip to compress a single file
> (I'm looking at you Google).
GNU gzip support uncompressing .zip files that contain a single
member. This can be very convenient when dealing with email
attachments that use zip instead of gzip to compress a single file
(I'm looking at you Google). Below is a diff to support this with
our gzip. This turned out to be more