Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7afa3a4
)
Add unsafe-byname tests with symlink destinations ending in '..'.
author
David Dykstra
<dwd@samba.org>
Mon, 20 Jan 2003 12:42:42 +0000
(12:42 +0000)
committer
David Dykstra
<dwd@samba.org>
Mon, 20 Jan 2003 12:42:42 +0000
(12:42 +0000)
testsuite/unsafe-byname.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/unsafe-byname.test
b/testsuite/unsafe-byname.test
index
ef6bfa7
..
a4f5370
100644
(file)
--- 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 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 ./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
test_unsafe '' from unsafe
# Based on tests from unsafe-links by Vladimír Michl