From 50592cd60fb6fce297249ae92eaa06a4f3cd753c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 25 Jan 2013 17:58:20 -0500 Subject: [PATCH] Add a test for a newly-discovered bug. --- run-tests.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/run-tests.sh b/run-tests.sh index 4cfea29..900ac16 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -576,3 +576,30 @@ EOF ACTUAL=`getfacl --omit-header "${TARGET}"` compare + +# Make sure a mask with an execute bit doesn't count as being +# executable. +# +TESTNUM=22 +TARGET="${TESTDIR}"/foo +touch "${TARGET}" +chmod 644 "${TARGET}" +setfacl -m user::rw "${TARGET}" +setfacl -m group::rw "${TARGET}" +# Even though the mask has an 'x' bit, nobody can execute it. +setfacl -m mask::rwx "${TARGET}" +setfacl -d -m user::rwx "${TESTDIR}" +setfacl -d -m group::rwx "${TESTDIR}" +$BIN "${TARGET}" + + +EXPECTED=$(cat <