From 0480a946f50c19ddcaea170c8f5aec68ecfbc1d2 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 23 Sep 2006 23:49:20 +0000 Subject: [PATCH] Some more testing based on Matt's recent patch. --- testsuite/chmod-option.test | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/testsuite/chmod-option.test b/testsuite/chmod-option.test index b00b1fcb..9278fa57 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 +t "$checkdir"/bar + +checkit "$RSYNC -avv --chmod=F+t \"$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" <