X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=run-tests.sh;h=4186b38054812aef3e951d6d791eb30cfd4a97b6;hb=1504070cadf122c8d3de0d15a0e2fd35f81eb576;hp=f218a8feefaa8810e5236d9aa631080f0ca69acf;hpb=2ab9ebe178bc7ef6f1d65dc465712f4fe18b4b50;p=apply-default-acl.git diff --git a/run-tests.sh b/run-tests.sh index f218a8f..4186b38 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -498,3 +498,57 @@ EOF ACTUAL=`getfacl --omit-header "${TARGET}"` compare + + + +# Test #16's setup repeated with the --no-exec-mask flag. +# +TESTNUM=20 +TARGET="${TESTDIR}"/foo +touch "${TARGET}" +chmod 644 "${TARGET}" +# The directory allows execute for user, group, and other, so the file +# should actually inherit them regardless of its initial mode when the +# --no-exec-mask flag is passed. +setfacl -d -m user:mail:rwx "${TESTDIR}" + +$BIN --no-exec-mask "${TARGET}" + +EXPECTED=$(cat <