[BusyBox] gunzip broken

Kenneth Chalmers kenneth.chalmers at norscan.com
Wed Mar 28 19:23:06 UTC 2001


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...

	-Ken





More information about the busybox mailing list