From: Michael Orlitzky Date: Mon, 3 Oct 2016 14:13:50 +0000 (-0400) Subject: Add one more test for recursive symlink handling. X-Git-Tag: v0.0.6~1 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=9d3425b2c979847cf37521aedd8d4b802d13928f;p=apply-default-acl.git Add one more test for recursive symlink handling. --- diff --git a/run-tests.sh b/run-tests.sh index a76b0e9..cdf356a 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -709,3 +709,24 @@ other::r-- EOF ) compare + + +# Ensure that symlinks are not followed in subdirectories +# (recursively). +TESTNUM=29 +TARGET="${TESTDIR}/bar" +touch "${TARGET}" +mkdir "${TESTDIR}/foo" +LINK2TARGET="${TESTDIR}/foo/bar-sym" +ln -s "../bar" "${LINK2TARGET}" +setfacl --default --modify user:${USERS[0]}:rwx "${TESTDIR}/foo" +"${BIN}" --recursive "${TESTDIR}/foo" +ACTUAL=$( getfacl --omit-header "${TARGET}" ) +EXPECTED=$(cat <