]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - run-tests.sh
run-tests.sh: ensure that we descend into directories with no ACLs.
[apply-default-acl.git] / 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