[BusyBox] tar include/exclude interaction broken

Matt Kraai kraai at alumni.carnegiemellon.edu
Sat Oct 13 07:51:09 UTC 2001


> On Fri, 12 Oct 2001 13:13:05 -0600
> Matt Kraai <kraai at alumni.carnegiemellon.edu> wrote:
> 
> > Howdy,
> > 
> > I've found a tar regression caused by the recent rewrite.  If an
> > archive contains
> > 
> > foo/
> > foo/bar
> > 
> > and the user asks for foo to be extracted, but not foo/bar,
> > BusyBox tar extracts neither.  I've included a test case which
> > demonstrates this in my latest test suite[1].  Could you please
> > fix this?
> > 
> > Matt
> > 
> > 1. http://busybox.net/~kraai/testsuite-0.1.9.tar.gz
> > 
> > 
> 
> I dont know how to fix this, maybe we need to keep seperate include and
> exclude lists all the way into unarchive() which would be a pain... plus i
> dont how to best handle the exclude list entries being applied recursively
> to an included directory name.
> 
> Anyone else have any ideas ?

I don't think it is possible to avoid this problem without providing both
lists to unarchive.  I based the inclusion/exclusion code in the old tar
on the GNU version, so it should behave correctly if transposed to
unarchive.

Matt


---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/







More information about the busybox mailing list