--- embedaddon/rsync/testsuite/dir-sgid.test 2012/02/17 15:09:30 1.1.1.1 +++ embedaddon/rsync/testsuite/dir-sgid.test 2013/10/14 07:51:15 1.1.1.2 @@ -5,7 +5,7 @@ # Test that rsync obeys directory setgid. -- Matt McCutchen -. $srcdir/testsuite/rsync.fns +. $suitedir/rsync.fns umask 077 @@ -26,7 +26,7 @@ testit() { echo "File!" >"$scratchdir/file" echo "#!/bin/sh" >"$scratchdir/program" mkdir "$scratchdir/dir" -chmod 2764 "$scratchdir/dir" || test_skipped "Can't chmod" +chmod u=rwx,g=rw,g+s,o=r "$scratchdir/dir" || test_skipped "Can't chmod" chmod 664 "$scratchdir/file" chmod 775 "$scratchdir/program" [ -g "$scratchdir/dir" ] || test_skipped "The directory setgid bit vanished!" @@ -35,7 +35,7 @@ mkdir "$scratchdir/dir/blah" # Test some target directories testit setgid-off 700 rw------- rwx------ rwx------ -testit setgid-on 2700 rw------- rwx------ rwx--S--- +testit setgid-on u=rwx,g=rw,g+s,o-rwx rw------- rwx------ rwx--S--- # Hooray exit 0