X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=run-tests.sh;h=cdf356a4227e3bb4f4e59338ed529226d7f45178;hb=9d3425b2c979847cf37521aedd8d4b802d13928f;hp=5f11c688f5163d1cb379d8947a38a1397779cf9f;hpb=ef2420c59077d26e659e091e21731f282564a498;p=apply-default-acl.git diff --git a/run-tests.sh b/run-tests.sh index 5f11c68..cdf356a 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -690,3 +690,43 @@ touch "${DUMMY1}" "${DUMMY2}" ACTUAL=$( ${BIN} "${DUMMY1}" test/nonexistent "${DUMMY2}" 2>&1 ) EXPECTED="${BIN}: test/nonexistent: no such file or directory" compare + + +# Ensure that symlinks are not followed. +TESTNUM=28 +TARGET="${TESTDIR}/foo" +LINK2TARGET="${TESTDIR}/foo-sym" +touch "${TARGET}" +ln -s "${TARGET#${TESTDIR}/}" "${LINK2TARGET}" +setfacl --default --modify user:${USERS[0]}:rwx "${TESTDIR}" +"${BIN}" "${LINK2TARGET}" +ACTUAL=$( getfacl --omit-header "${TARGET}" ) +EXPECTED=$(cat <