From: Wayne Davison Date: Fri, 13 Oct 2006 04:59:53 +0000 (+0000) Subject: Some OSes can't chmod -t for a file, so I changed the logic of our X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/71cb9df386acebe1811ff1ef79249a6b6aaea78e Some OSes can't chmod -t for a file, so I changed the logic of our to to substitute a chmod that will work everywhere. --- diff --git a/testsuite/chmod-option.test b/testsuite/chmod-option.test index 9278fa57..4dc01cc7 100644 --- a/testsuite/chmod-option.test +++ b/testsuite/chmod-option.test @@ -44,9 +44,9 @@ makepath "$fromdir/foo" touch "$fromdir/bar" checkit "$RSYNC -avv \"$fromdir/\" \"$checkdir/\"" "$fromdir" "$checkdir" -chmod +t "$checkdir"/bar +chmod o+x "$fromdir"/bar -checkit "$RSYNC -avv --chmod=F+t \"$fromdir/\" \"$todir/\"" "$checkdir" "$todir" +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 @@ -57,7 +57,7 @@ cat >>"$scratchdir/test-rsyncd.conf" <