X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/1c53e5171cfce78416c0a534dbe8fb2d0725fd2e..79028af116752d192634f44e672f0b8b51ba7785:/testsuite/acls.test diff --git a/testsuite/acls.test b/testsuite/acls.test index af560074..9d9288f8 100644 --- a/testsuite/acls.test +++ b/testsuite/acls.test @@ -9,10 +9,6 @@ $RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support" -case "$RSYNC" in -*protocol=29*) test_skipped "ACL support requires protocol 30" ;; -esac - case "$setfacl_nodef" in true) test_skipped "I don't know how to use your setfacl command" ;; esac @@ -24,12 +20,19 @@ echo else >"$fromdir/file2" files='foo file1 file2' setfacl -m u:0:7 "$fromdir/foo" || test_skipped "Your filesystem has ACLs disabled" +setfacl -m g:1:5 "$fromdir/foo" +setfacl -m g:2:1 "$fromdir/foo" +setfacl -m g:0:7 "$fromdir/foo" +setfacl -m u:2:1 "$fromdir/foo" +setfacl -m u:1:5 "$fromdir/foo" + setfacl -m u:0:5 "$fromdir/file1" -setfacl -m u:0:5 "$fromdir/file2" -$RSYNC -avvA "$fromdir/" "$todir/" +setfacl -m u:0:5 "$fromdir/file2" cd "$fromdir" +$RSYNC -avvA $files "$todir/" + getfacl $files >"$scratchdir/acls.txt" cd "$todir"