From: Michael Orlitzky Date: Sat, 18 Aug 2012 01:38:06 +0000 (-0400) Subject: Add one more test for the default mask execute bit. X-Git-Tag: v0.0.1~3 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2c0cec434f75b206f33afd4972db4b2bf2f92fb6;p=apply-default-acl.git Add one more test for the default mask execute bit. --- diff --git a/run-tests.sh b/run-tests.sh index a01d47c..4df37b9 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -229,3 +229,28 @@ EOF ACTUAL=`getfacl --omit-header "${TARGET}"` compare + + +# If the default ACL mask denies execute, we should respect that +# regardless of the existing execute permissions. +TESTNUM=10 +TARGET="${TESTDIR}"/foo +touch "${TARGET}" +chmod 777 "${TARGET}" +setfacl -m user:mail:rwx "${TESTDIR}" +setfacl -d -m user:mail:rwx "${TESTDIR}" +setfacl -d -m mask::rw- "${TESTDIR}" +./aclq "${TARGET}" + +EXPECTED=$(cat <