relying on a default umask.
Updated for pv#820248.
echo ""
echo "=== Test Default ACLs ==="
+# make test clearer by testing with and without umask
+umask 0
+
mkdir acldir
chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir 2>&1
chacl -l acldir | _acl_filter_id
-
cd acldir
+
touch file2
_acl_ls file2
chacl -l file2 | _acl_filter_id
+
+#ensure that umask is not having an effect
+#so set it and see
+umask 722
+touch file3
+_acl_ls file3
+chacl -l file3 | _acl_filter_id
+
cd ..
+umask 022
+
#-------------------------------------------------------
acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
-r--r----- 0 0 file2
file2 [u::r--,g::r--,o::---]
+-r--r----- 0 0 file3
+file3 [u::r--,g::r--,o::---]
=== Removing ACLs ===
file1 [o::---,g::---,u::---]