diff options
author | Ben Walton <bwalton@artsci.utoronto.ca> | 2011-09-20 22:57:39 -0400 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-09-22 08:28:07 -0700 |
commit | 8adceeb2b38a7f9f6a2c1fc5a5bf2635927a303b (patch) | |
tree | 4f8c9877d0fa2d0eb046b214a6fa7126be76d564 /testsuite/dir-sgid.test | |
parent | 0c7fdf705ec0ef4393d4af3f87de5f13956ece45 (diff) | |
download | rsync-8adceeb2b38a7f9f6a2c1fc5a5bf2635927a303b.tar.gz |
Testsuite/dir-sgid: use symbolic mode to set sgid bit
The chmod on Solaris (9 and 10) cannot set the sgid bit on a directory
using absolute mode, so use symbolic mode. Avoids a skipped test.
Diffstat (limited to 'testsuite/dir-sgid.test')
-rw-r--r-- | testsuite/dir-sgid.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/dir-sgid.test b/testsuite/dir-sgid.test index bbd86a61..44cd61e7 100644 --- a/testsuite/dir-sgid.test +++ b/testsuite/dir-sgid.test @@ -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 |