From: Michael Orlitzky Date: Fri, 2 Mar 2018 19:57:50 +0000 (-0500) Subject: run-tests.sh: ensure that we descend into directories with no ACLs. X-Git-Tag: v0.3.0~9 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=commitdiff_plain;h=b8cecada12c850ce02f823e1db3643d31c99c5b8 run-tests.sh: ensure that we descend into directories with no ACLs. --- diff --git a/run-tests.sh b/run-tests.sh index e077c7a..c172128 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -899,3 +899,17 @@ EXPECTED=$( getfacl --omit-header "${TARGET}" ) "${BIN}" --recursive "${TARGET}" ACTUAL=$( getfacl --omit-header "${TARGET}" ) compare + + +# Make sure we descend into subdirectories that don't have default ACLs. +TESTNUM=42 +TARGET="${TESTDIR}/foo/bar/baz" +mkdir -p $(dirname "${TARGET}") +touch "${TARGET}" +touch "${TARGET}-direct" +setfacl --default --modify user:${USERS[0]}:rw $(dirname "${TARGET}") +"${BIN}" "${TARGET}-direct" +EXPECTED=$( getfacl --omit-header "${TARGET}-direct" ) +"${BIN}" --recursive "${TESTDIR}" +ACTUAL=$( getfacl --omit-header "${TARGET}" ) +compare