[BusyBox] Tar problems continue

Matt Kraai kraai at alumni.cmu.edu
Sun Feb 17 11:45:04 UTC 2002


On Fri, Feb 15, 2002 at 03:21:16PM +1100, Glenn McGrath wrote:
> On Thu, 14 Feb 2002 10:08:47 -0800
> "Richard Doyle" <rdoyle at islandnetworks.com> wrote:
> > I'm still getting odd behavior from tar in the unstable branch of
> > BusyBox (tar.c dated Feb 12 20:45), compiled under uClibc. Busybox tar
> > improperly handles the list of files to be processed when creating a
> tar> file: absolute paths are required, and only the last file or
> directory> in the list of files is added to the tarfile.
> > 
> 
> I fixed a bug (fix is in CVS) where the lists of files to be included
> and excluded wernt being passed properly to writeTarFile(). Im a little
> surprised any files were being added... i hope there arent more bugs
> lurking in there. 

Here is the regression test I created to prevent this from
cropping up in the future:

touch foo bar
busybox tar cf foo.tar foo bar
rm foo bar
tar xf foo.tar
test -f foo -a -f bar

*Please* add regression tests for bugs that you fix if it is easy
to do so.  

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/20020217/26d70bf5/attachment.pgp 


More information about the busybox mailing list