X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8a3d4658eb6beef06c172702b29390c04405f618..d1798a2fda20876febfecdc035510a0dd9875761:/testsuite/chmod-option.test diff --git a/testsuite/chmod-option.test b/testsuite/chmod-option.test index b00b1fcb..20b3a51b 100644 --- a/testsuite/chmod-option.test +++ b/testsuite/chmod-option.test @@ -38,5 +38,35 @@ chmod +w "$checkdir" "$checkdir"/dir* checkit "$RSYNC -avv --chmod ug-s,a+rX,D+w \"$fromdir/\" \"$todir/\"" "$checkdir" "$todir" +rm -r "$fromdir" "$checkdir" "$todir" +makepath "$todir" +makepath "$fromdir/foo" +touch "$fromdir/bar" + +checkit "$RSYNC -avv \"$fromdir/\" \"$checkdir/\"" "$fromdir" "$checkdir" +chmod o+x "$fromdir"/bar + +checkit "$RSYNC -avv --chmod=Fo-x \"$fromdir/\" \"$todir/\"" "$checkdir" "$todir" + +# Tickle a bug in rsync 2.6.8: if you push a new directory with --perms off to +# a daemon with an incoming chmod, the daemon pretends the directory is a file +# for the purposes of the second application of the incoming chmod. + +build_rsyncd_conf +cat >>"$scratchdir/test-rsyncd.conf" <