]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
run-tests.sh: ensure that we descend into directories with no ACLs.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Mar 2018 19:57:50 +0000 (14:57 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Mar 2018 19:57:50 +0000 (14:57 -0500)
run-tests.sh

index e077c7a46e141585487f9c13b4442f99c25c27d8..c1721287c339431de6e9e4d8f0afad93b246ceb3 100755 (executable)
@@ -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