Test the new symlink sanitizing fix by using ::test-scratchdir/to
authorWayne Davison <wayned@samba.org>
Tue, 2 May 2006 17:13:11 +0000 (17:13 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 2 May 2006 17:13:11 +0000 (17:13 +0000)
as the destination and including a symlink with a leading "../" .

testsuite/daemon-gzip-upload.test

index 49a7b1a..1b327b4 100644 (file)
@@ -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