[BusyBox] bzcat foo.bz2 | tar -x

Thomas Lundquist lists at zelow.no
Sat Jul 5 12:49:44 UTC 2003


Hi.

bzcat foo.bz2 | tar -x

seems not to work on the CVS version of busybox.

it does untar some of the file and seems to be happy but it does not
untar the whole archive.

I've investigated this and:
(tested on a Debian Potato box)

 - if you use bzcat from debian and tar from busybox it works,
 
 - if you use debians tar and busybox bzcat it works
 
 - with both bzcat and tar from busybox it does not untar all of it.
   no error messages, just not all the files and directories.

tar -xjf does work.

this problem seems to have been introduced around the same time the -j
switch was added.

from the CVS log:

"Abstract read and seek in unarchiving code, convert bunzip to file
descriptors, support tar -j"

I do think it's the "convert bunzip to file descriptors" that may be the
issue here altho gunzip does use file descriptors and it works.

this bug is also present on a uClibc system.



Thomas.



More information about the busybox mailing list