cpio: fix a bug where we do not extract zero-sized hardlinks
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 5 Apr 2008 02:44:30 +0000 (02:44 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 5 Apr 2008 02:44:30 +0000 (02:44 -0000)
commit1af00eda92e9a036ff217b11ff45ebe559de66f9
tree67472bb3e4eddce347cfe7fa753c24f07faa5c4a
parent1a95e3960ca7dde16bda26ec9dad986199bae3c3
cpio: fix a bug where we do not extract zero-sized hardlinks
(spotted at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466771).
Add testsuite entry for that, and another one for another bug:
we do not list hardlinks in cpio -t (not fixed).

function                                             old     new   delta
get_header_cpio                                      884     909     +25
static.saved_hardlinks_created                         -       4      +4
static.pending_hardlinks                               4       -      -4
static.inode                                           4       -      -4
cpio_main                                           1122    1060     -62
TODO_config_nommu
archival/Config.in
archival/cpio.c
archival/libunarchive/data_extract_all.c
archival/libunarchive/get_header_cpio.c
archival/libunarchive/seek_by_jump.c
scripts/defconfig