Commit 71cb9df3 authored by Wayne Davison's avatar Wayne Davison

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.
parent f97c2d4a
...@@ -44,9 +44,9 @@ makepath "$fromdir/foo" ...@@ -44,9 +44,9 @@ makepath "$fromdir/foo"
touch "$fromdir/bar" touch "$fromdir/bar"
checkit "$RSYNC -avv \"$fromdir/\" \"$checkdir/\"" "$fromdir" "$checkdir" 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 # 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 # a daemon with an incoming chmod, the daemon pretends the directory is a file
...@@ -57,7 +57,7 @@ cat >>"$scratchdir/test-rsyncd.conf" <<EOF ...@@ -57,7 +57,7 @@ cat >>"$scratchdir/test-rsyncd.conf" <<EOF
[test-incoming-chmod] [test-incoming-chmod]
path = $todir path = $todir
read only = no read only = no
incoming chmod = F+t incoming chmod = Fo-x
EOF EOF
RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment