diff options
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-x | testsuite/tar.tests | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 1675b07b1..d71a34910 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -336,7 +336,7 @@ SKIP= | |||
336 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | 336 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null |
337 | 337 | ||
338 | mkdir tar.tempdir && cd tar.tempdir || exit 1 | 338 | mkdir tar.tempdir && cd tar.tempdir || exit 1 |
339 | optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT | 339 | optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS |
340 | testing "Symlink attack: create symlink and then write through it" '\ | 340 | testing "Symlink attack: create symlink and then write through it" '\ |
341 | exec 2>&1 | 341 | exec 2>&1 |
342 | uudecode -o input && tar xvf input; echo $? | 342 | uudecode -o input && tar xvf input; echo $? |
@@ -365,4 +365,22 @@ 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 | optional FEATURE_TAR_CREATE | ||
370 | testing "Symlinks and hardlinks coexist" '\ | ||
371 | mkdir dir | ||
372 | >dir/a | ||
373 | ln -s ../dir/a dir/b | ||
374 | ln dir/b dir/c | ||
375 | mkdir new | ||
376 | tar cf - dir/* | tar -C new -xvf - 2>&1 | ||
377 | ' "\ | ||
378 | dir/a | ||
379 | dir/b | ||
380 | dir/c | ||
381 | " \ | ||
382 | "" "" | ||
383 | SKIP= | ||
384 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | ||
385 | |||
368 | exit $FAILCOUNT | 386 | exit $FAILCOUNT |