[BusyBox] bzcat foo.bz2 | tar -x
Erik Andersen
andersen at codepoet.org
Sat Jul 5 23:24:45 UTC 2003
On Sat Jul 05, 2003 at 02:49:44PM +0200, Thomas Lundquist wrote:
>
> 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.
It turns out that busybox tar was being too picky about short
reads (which are typical when reading from pipes such as stdin)
and was therefore giving up too easily. The fix was simple
however, busybox tar just needed to keep reading until it either
read an entire tar block or until there was an error.
Fortunately, we already have a function to do that..
Care to try once again with the latest and greatest?
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list