X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=run-tests.sh;h=7f7ba8fb41f456a54b9155e9aec26640ef285a98;hb=2bc2d104386912d39aa78c6fceb5694014257a7e;hp=d055560fc8d0b8a90f992583d54f53f3f717ab29;hpb=e94122e560ac74cecfbd2507bf7ee867171d20e9;p=apply-default-acl.git diff --git a/run-tests.sh b/run-tests.sh index d055560..7f7ba8f 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -730,3 +730,22 @@ other::r-- EOF ) compare + + +# Ensure that hard links are ignored. +TESTNUM=30 +TARGET="${TESTDIR}/foo" +LINK2TARGET="${TESTDIR}/bar" +touch "${TARGET}" +ln "${TARGET}" "${LINK2TARGET}" +setfacl --default --modify user:${USERS[0]}:rwx "${TESTDIR}" +"${BIN}" "${LINK2TARGET}" +ACTUAL=$( getfacl --omit-header "${TARGET}" ) +EXPECTED=$(cat <