X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=run-tests.sh;h=7b445502ea910a08e54bc4c84d146b9274e6a6b6;hb=c03a7e0eed0349bbffdea2663aae846483e4c3f6;hp=fc5e2b48dcd13b79de969aed5df7d84bfc870dbe;hpb=0175b9b5a508c68a9a34de46cfb6fe3b0c917c77;p=apply-default-acl.git diff --git a/run-tests.sh b/run-tests.sh index fc5e2b4..7b44550 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -257,3 +257,80 @@ EOF ACTUAL=`getfacl --omit-header "${TARGET}"` compare + + + +# The --recursive mode should work normally if the argument is a +# normal file. See Test #1. +TESTNUM=11 +TARGET="${TESTDIR}"/foo +setfacl -d -m user::r-- "${TESTDIR}" +setfacl -d -m group::r-- "${TESTDIR}" +setfacl -d -m other::r-- "${TESTDIR}" +touch "${TARGET}" +chmod 777 "${TARGET}" +$BIN --recursive "${TARGET}" + +EXPECTED=$(cat <