Make sure that the --relative test creates the implied directories

with user-write permission, and turns any symlinks in the implied
dirs into real dirs.
This commit is contained in:
Wayne Davison committed 2006-03-16 20:02:36 +00:00
1 parent a7704777ce
commit 4209f079dd
1 file changed
+4 -3
+4 -3
View File
@@ -203,11 +203,12 @@ $RSYNC -av --delete-excluded --exclude='*' "$fromdir/" "$todir/"
checkit "$RSYNC -avv -f dir-merge,-_.excl \
\"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
$RSYNC -avR "$fromdir/foo" "$chkdir/"
relative_opts='--relative --chmod=Du+w --copy-unsafe-links'
$RSYNC -av $relative_opts "$fromdir/foo" "$chkdir/"
rm -rf "$chkdir$fromdir/foo/down"
$RSYNC -avR --existing --filter='-! */' "$fromdir/foo" "$chkdir/"
$RSYNC -av $relative_opts --existing --filter='-! */' "$fromdir/foo" "$chkdir/"
checkit "$RSYNC -avvR --exclude=\"$fromdir/foo/down\" \
checkit "$RSYNC -avv $relative_opts --exclude=\"$fromdir/foo/down\" \
\"$fromdir/foo\" \"$todir\"" "$chkdir$fromdir/foo" "$todir$fromdir/foo"
# The script would have aborted on error, so getting here means we've won.