diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2018-05-22 17:34:31 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-05-22 17:34:31 +0200 |
commit | 8c24af9dcfe0d89a660c39838eec4d20bc13efbf (patch) | |
tree | 1be6f930fb21383ba8c46a6d0491cafe3e26d687 /testsuite | |
parent | a40a661d971cf75c617c83357ac0e87a45f41f4f (diff) | |
download | busybox-w32-8c24af9dcfe0d89a660c39838eec4d20bc13efbf.tar.gz busybox-w32-8c24af9dcfe0d89a660c39838eec4d20bc13efbf.tar.bz2 busybox-w32-8c24af9dcfe0d89a660c39838eec4d20bc13efbf.zip |
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>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/tar.tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 1675b07b1..6c479d3fe 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -365,4 +365,20 @@ n8fYaKlioCTzL2oXYczyUUIP4u5IpwoSEwWdtoA= | |||
365 | SKIP= | 365 | SKIP= |
366 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | 366 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null |
367 | 367 | ||
368 | mkdir tar.tempdir && cd tar.tempdir || exit 1 | ||
369 | testing "Symlinks and hardlinks coexist" '\ | ||
370 | mkdir dir | ||
371 | >dir/a | ||
372 | ln -s ../dir/a dir/b | ||
373 | ln dir/b dir/c | ||
374 | mkdir new | ||
375 | tar cf - dir/* | tar -C new -xvf - 2>&1 | ||
376 | ' "\ | ||
377 | dir/a | ||
378 | dir/b | ||
379 | dir/c | ||
380 | " \ | ||
381 | "" "" | ||
382 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | ||
383 | |||
368 | exit $FAILCOUNT | 384 | exit $FAILCOUNT |