On Feb 4, 2008 8:51 AM,  <[EMAIL PROTECTED]> wrote:
> > cat myfile.zip | unzip -
> >
> > This should quickly reproduce the problem.  As a worst case scenario,
> > let unzip only have one byte at a time.
> >
> > cat myfile.zip | dd bs=1 | unzip -
> >
> > The zipfile you're decompressing should have multiple files in it.
> > Only the first file will work.  The remaining files should fail with
> > an error.
>
> Please test attached fix.

Sorry for the delay, was busy with other things.  Finally tested it
now, and it looks good.

I tested with gzip, gunzip, and unzip.  I didn't test with zip.

It works for multiple files in the .zip file.  I didn't test support
for multiple files in a .gz file (having not known it was possible
before).

It also works when forcing under-reads by using "dd" to spoonfeed it a
few bytes at a time.

Much thanks!

Josh
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to