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