X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/06464f55e26e1f26e10c04f4a11a4d85fadbd5f7..165dd4a6367ac95282f46ab017159f6e852abdc2:/testsuite/unsafe-links.test diff --git a/testsuite/unsafe-links.test b/testsuite/unsafe-links.test index 7b508bcb..28c5c6df 100644 --- a/testsuite/unsafe-links.test +++ b/testsuite/unsafe-links.test @@ -2,7 +2,7 @@ # Originally by VladimĂ­r Michl -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" test_symlink() { is_a_link "$1" || test_fail "File $1 is not a symlink" @@ -14,7 +14,7 @@ test_regular() { fi; }; -cd "$TMP" +cd "$tmpdir" mkdir from @@ -46,20 +46,13 @@ test_regular to/links/file1 test_regular to/links/file2 test_regular to/links/unsafefile -#next rsync copy correctly echo "rsync with relative path and --copy-unsafe-links"; $RSYNC -avv --copy-unsafe-links from/safe/ to test_symlink to/links/file1 test_symlink to/links/file2 test_regular to/links/unsafefile -# I think these are correct, but I don't really understand the code. -# Waiting for an answer from dwd -test_skipped "correct behaviour is unclear" - - rm -rf to -#next rsync copy incorrectly - links are copied as files not as links echo "rsync with relative2 path"; (cd from; $RSYNC -avv --copy-unsafe-links safe/ ../to) test_symlink to/links/file1 @@ -67,7 +60,6 @@ test_symlink to/links/file2 test_regular to/links/unsafefile rm -rf to -#next rsync copy uncorectly - all links are copied echo "rsync with absolute path"; $RSYNC -avv --copy-unsafe-links `pwd`/from/safe/ to test_symlink to/links/file1