Add more test cases.
[rsync/rsync.git] / testsuite / unsafe-byname.test
index a4d2436..e18c112 100644 (file)
@@ -14,8 +14,6 @@ test_unsafe() {
     fi
 }
 
-set -x
-
 test_unsafe file from safe
 test_unsafe dir/file from safe
 test_unsafe dir/./file from safe
@@ -40,3 +38,7 @@ test_unsafe ../files/file1           safe     unsafe
 test_unsafe ../../unsafe/unsafefile    `pwd`/from/safe safe
 test_unsafe ../files/file1            `pwd`/from/safe  safe
 
+# Test suspicious handling of '..' in srcdir
+test_unsafe ../../unsafe/unsafefile    from/safe/../safe       unsafe
+test_unsafe ../files/file1            from/safe/../safe        safe
+