From 2c0cec434f75b206f33afd4972db4b2bf2f92fb6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 17 Aug 2012 21:38:06 -0400 Subject: [PATCH] Add one more test for the default mask execute bit. --- run-tests.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 <