libunarchive: fix ancient bug (?) checking for newer file

Alejandro Mery amery at opensde.org
Mon Nov 23 22:02:58 UTC 2009


Hi,

playing with `cpio` I noticed the conditional in data_extract_all() 
<http://git.busybox.net/busybox/tree/archival/libunarchive/data_extract_all.c#n39> 
if the new file is older than the current is reversed. current code only 
allows overwritting with old files... which doesn't make much sense... 
to me.

best regards,
Alejandro Mery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newer.patch
Type: text/x-diff
Size: 519 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091123/e39eddfb/attachment.bin>


More information about the busybox mailing list