summaryrefslogtreecommitdiff
path: root/testsuite/daemon-gzip-upload.test
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-05-02 17:13:11 +0000
committerWayne Davison <wayned@samba.org>2006-05-02 17:13:11 +0000
commitd8f28a663ca63c09d57c1aa7988e677c16497428 (patch)
tree590b46d3b9b3cd21c481944704cabb1b36d7575d /testsuite/daemon-gzip-upload.test
parent2ae4126a9e878cd99d154f0c0b8968f70b45bbdc (diff)
downloadrsync-d8f28a663ca63c09d57c1aa7988e677c16497428.tar.gz
Test the new symlink sanitizing fix by using ::test-scratchdir/to
as the destination and including a symlink with a leading "../" .
Diffstat (limited to 'testsuite/daemon-gzip-upload.test')
-rw-r--r--testsuite/daemon-gzip-upload.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/daemon-gzip-upload.test b/testsuite/daemon-gzip-upload.test
index 49a7b1ae..1b327b44 100644
--- a/testsuite/daemon-gzip-upload.test
+++ b/testsuite/daemon-gzip-upload.test
@@ -22,10 +22,14 @@ export RSYNC_CONNECT_PROG
hands_setup
+umask 0
+ln -s ../to/nolf "$fromdir/to-nolf-symlink"
+umask 022
+
# Build chkdir with a normal rsync and an --exclude.
$RSYNC -av --exclude=foobar.baz "$fromdir/" "$chkdir/"
-checkit "$RSYNC -avvvvz \"$fromdir/\" localhost::test-to/" "$chkdir" "$todir"
+checkit "$RSYNC -avvvvz \"$fromdir/\" localhost::test-scratch/to/" "$chkdir" "$todir"
# The script would have aborted on error, so getting here means we've won.
exit 0