-setfacl -m u:0:7 "$fromdir/foo" || test_skipped "Your filesystem has ACLs disabled"
-setfacl -m u:0:5 "$fromdir/file1"
-setfacl -m u:0:5 "$fromdir/file2"
-
-$RSYNC -avvA "$fromdir/" "$todir/"
+case "$setfacl_nodef" in
+true)
+ if ! chmod --help 2>&1 | fgrep +a >/dev/null; then
+ test_skipped "I don't know how to use setfacl or chmod for ACLs"
+ fi
+ chmod +a "root allow read,write,execute" "$fromdir/foo" || test_skipped "Your filesystem has ACLs disabled"
+ chmod +a "root allow read,execute" "$fromdir/file1"
+ chmod +a "admin allow read" "$fromdir/file1"
+ chmod +a "daemon allow read,write" "$fromdir/file1"
+ chmod +a "root allow read,execute" "$fromdir/file2"
+
+ see_acls() {
+ ls -le "${@}"
+ }
+ ;;
+*)
+ 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 g:0:4 "$fromdir/file1"
+ setfacl -m u:1:6 "$fromdir/file1"
+
+ setfacl -m u:0:5 "$fromdir/file2"
+
+ see_acls() {
+ getfacl "${@}"
+ }
+ ;;
+esac