From: Michael Orlitzky Date: Fri, 25 Jan 2013 22:58:20 +0000 (-0500) Subject: Add a test for a newly-discovered bug. X-Git-Tag: v0.0.4~2 X-Git-Url: https://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=commitdiff_plain;h=50592cd60fb6fce297249ae92eaa06a4f3cd753c Add a test for a newly-discovered bug. --- 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 <