setfacl -d -m user:${USERS[1]}:rwx "${TESTDIR}"
$BIN "${TARGET}"
-
EXPECTED=$(cat <<EOF
user::rwx
user:${USERS[0]}:rwx
setfacl -d -m user:${USERS[0]}:rwx "${TESTDIR}"
$BIN "${TARGET}"
-
EXPECTED=$(cat <<EOF
user::rw-
user:${USERS[0]}:rwx #effective:rw-
# we get the expected error.
TESTNUM=25
ACTUAL=$( "${BIN}" test/nonexistent 2>&1 )
-ACTUAL="${ACTUAL#*: }"
EXPECTED="test/nonexistent: No such file or directory"
compare
# Same as the previous test, but with --recursive.
TESTNUM=26
ACTUAL=$( "${BIN}" --recursive test/nonexistent 2>&1 )
-ACTUAL="${ACTUAL#*: }"
EXPECTED="test/nonexistent: No such file or directory"
compare
DUMMY2="${TESTDIR}/dummy2"
touch "${DUMMY1}" "${DUMMY2}"
ACTUAL=$( "${BIN}" "${DUMMY1}" test/nonexistent "${DUMMY2}" 2>&1 )
-ACTUAL="${ACTUAL#*: }"
EXPECTED="test/nonexistent: No such file or directory"
compare