cpio does not unpack hardlink to empty files

Denys Vlasenko vda.linux at googlemail.com
Fri Jul 11 15:01:11 PDT 2008


On Friday 11 July 2008 21:54, Bernhard Fischer wrote:
> Hi,
> 
> Just mentioning this bug
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466771
> 
> mkdir test
> touch test/solo
> touch test/empty
> echo -n x >test/nonempty
> ln test/empty test/empty1
> ln test/nonempty test/nonempty1
> mkdir z
> find test | cpio -H newc --create | (cd z && ../busybox cpio -i)

I fixed it sometime ago.

But just re-tested it and whew, there is another bug :(
and we also don't support long opts like --create.

Time to deal with it. This patch fixes both bugs
and adds the above example tot he testsuite.

Which hopefully means that it will stay fixed :)

Will be included in busybox 1.11.1.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpio_fix.patch
Type: text/x-diff
Size: 10043 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080712/ed3b2f5d/attachment-0001.patch 


More information about the busybox mailing list