From: David Dykstra Date: Mon, 20 Jan 2003 12:42:42 +0000 (+0000) Subject: Add unsafe-byname tests with symlink destinations ending in '..'. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/a405cda63cafc6619cf2dcfd46a4cedceb16130c Add unsafe-byname tests with symlink destinations ending in '..'. --- diff --git a/testsuite/unsafe-byname.test b/testsuite/unsafe-byname.test index ef6bfa7f..a4f5370f 100644 --- a/testsuite/unsafe-byname.test +++ b/testsuite/unsafe-byname.test @@ -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