tar: fix interaction of delayed symlink and hardlink creation
authorHarald van Dijk <harald@gigawatt.nl>
Tue, 22 May 2018 15:34:31 +0000 (17:34 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 22 May 2018 15:34:31 +0000 (17:34 +0200)
commit8c24af9dcfe0d89a660c39838eec4d20bc13efbf
tree1be6f930fb21383ba8c46a6d0491cafe3e26d687
parenta40a661d971cf75c617c83357ac0e87a45f41f4f
tar: fix interaction of delayed symlink and hardlink creation

function                                             old     new   delta
create_or_remember_link                                -     106    +106
create_links_from_list                                 -      93     +93
find_applet_by_name                                  124     128      +4
unzip_main                                          2724    2726      +2
data_extract_all                                     891     873     -18
create_symlinks_from_list                             64       -     -64
create_or_remember_symlink                            94       -     -94
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 2/1 up/down: 205/-176)           Total: 29 bytes

Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/cpio.c
archival/libarchive/data_extract_all.c
archival/libarchive/get_header_ar.c
archival/libarchive/unsafe_symlink_target.c
archival/tar.c
archival/unzip.c
include/bb_archive.h
testsuite/tar.tests