From 9d3425b2c979847cf37521aedd8d4b802d13928f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 3 Oct 2016 10:13:50 -0400 Subject: [PATCH] Add one more test for recursive symlink handling. --- run-tests.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 <