Add unsafe-byname tests with symlink destinations ending in '..'.
authorDavid Dykstra <dwd@samba.org>
Mon, 20 Jan 2003 12:42:42 +0000 (12:42 +0000)
committerDavid Dykstra <dwd@samba.org>
Mon, 20 Jan 2003 12:42:42 +0000 (12:42 +0000)
testsuite/unsafe-byname.test

index ef6bfa7..a4f5370 100644 (file)
@@ -22,17 +22,22 @@ test_unsafe() {
 test_unsafe file               from                    safe
 test_unsafe dir/file           from                    safe
 test_unsafe dir/./file         from                    safe
-test_unsafe dir/.              from safe
-test_unsafe dir/               from safe
+test_unsafe dir/.              from                    safe
+test_unsafe dir/               from                    safe
 
-test_unsafe /etc/passwd                from unsafe
-test_unsafe //../etc/passwd    from unsafe
-test_unsafe //./etc/passwd     from unsafe
+test_unsafe /etc/passwd                from                    unsafe
+test_unsafe //../etc/passwd    from                    unsafe
+test_unsafe //./etc/passwd     from                    unsafe
 
 test_unsafe ./foo              from                    safe
 test_unsafe ../foo             from                    unsafe
 test_unsafe ../dest            from/dir                safe
 
+test_unsafe ..                 from/file               safe
+test_unsafe ../..              from/file               unsafe
+test_unsafe dir/..             from                    safe
+test_unsafe dir/../..          from                    unsafe
+
 test_unsafe ''                  from                   unsafe
 
 # Based on tests from unsafe-links by VladimĂ­r Michl