From a405cda63cafc6619cf2dcfd46a4cedceb16130c Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Mon, 20 Jan 2003 12:42:42 +0000 Subject: [PATCH] Add unsafe-byname tests with symlink destinations ending in '..'. --- testsuite/unsafe-byname.test | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 -- 2.34.1