Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various xattr fixes:
[rsync/rsync.git]
/
testsuite
/
unsafe-byname.test
diff --git
a/testsuite/unsafe-byname.test
b/testsuite/unsafe-byname.test
index
ef6bfa7
..
61e0e24
100644
(file)
--- a/
testsuite/unsafe-byname.test
+++ b/
testsuite/unsafe-byname.test
@@
-4,7
+4,7
@@
# Call directly into unsafe_symlink and test its handling of various filenames
# Call directly into unsafe_symlink and test its handling of various filenames
-.
$srcdir/testsuite/rsync.fns
+.
"$suitedir/rsync.fns"
test_unsafe() {
# $1 is the target of a symlink
test_unsafe() {
# $1 is the target of a symlink
@@
-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