[BusyBox] More tar bugs...

Matt Kraai kraai at alumni.carnegiemellon.edu
Mon Sep 4 01:51:41 UTC 2000


On Sun, Sep 03, 2000 at 05:43:09PM +0200, Alfred M. Szmidt wrote:
> Ok, found a cute bug in tar today
> I have two files, "test" and "tset" in a tar+gzip archive
> test contains "Hurray! we are testing tar!!!"
> and tset contains "!!!rat gnitset era ew !yarruH"
> 
> # Busybox
> $ cat ../test.tar.gz | gunzip -c - | tar -Oxf - test
> Hurray! we are testing tar!!!
> !!!rat gnitset era ew !yarruH
> $
> 
> # GNU
> $ cat ../test.tar.gz | gunzip -c - | tar -Oxf - test
> Hurray! we are testing tar!!!
> $

The version of tar provided by busybox does not allow you to select
which files to extract from an archive.  It always extracts everything
in the archive.  The attached patch allows you to select files to
extract (or list).  Should it be committed?

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20000903/f919a021/attachment.pgp 


More information about the busybox mailing list