[BusyBox] Re: gunzip broken
Glenn McGrath
bug1 at optushome.com.au
Wed Mar 28 23:35:50 UTC 2001
Kenneth Chalmers wrote:
>
> Unfortunately, with all the rewriting going on, it seems gunzip has been
> broken - particularily with respect to console/redirected output. Session
> transcript follows:
>
> $ ls -l
> total 264
> -rwxrwxr-x 1 chalmers chalmers 171536 Mar 28 13:05 busybox
> -rwxrwxr-x 1 chalmers chalmers 86237 Mar 28 13:19 test.gz
> $ ./busybox gunzip -c test.gz >foo
> Segmentation fault
> $ ls -l
> total 264
> -rwxrwxr-x 1 chalmers chalmers 171536 Mar 28 13:05 busybox
> -rw-rw-r-- 1 chalmers chalmers 0 Mar 28 13:20 foo
> -rwxrwxr-x 1 chalmers chalmers 86237 Mar 28 13:19 test.gz
> $ rm foo
> $ ./busybox zcat test.gz >foo
> $ ls -l
> total 344
> -rwxrwxr-x 1 chalmers chalmers 171536 Mar 28 13:05 busybox
> -rw-rw-r-- 1 chalmers chalmers 0 Mar 28 13:20 foo
> -rwxrwxr-x 1 chalmers chalmers 171536 Mar 28 13:20 test
>
> Note especially the last test: I wanted zcat to write its output to foo, but
> it just decompressed the file in place.
>
> Glenn, is this a quick fix? Or should I submit it as a bug? Or am I just
> crazy? Enquiring minds want to know...
>
I hope there is a quick fix :)
I will look at it straight away, i imagine it is something simple like
im not passing the correct file handle to unzip().
So dont worry about a bug report, if i cant get it fixed today then i
will consider doing a bug report.
Thanks
Glenn
More information about the busybox
mailing list