Override reading of files when we are root

This commit is contained in:
Michael Boelen 2016-07-31 21:18:56 +02:00
parent 290252b764
commit 9874530615
1 changed files with 2 additions and 2 deletions

View File

@ -739,8 +739,8 @@
LogText "Result: file is not owned by current user ID (${MYID}), but UID ${FILEOWNER}"
fi
# Check if we have the read bit
if [ "${OTHERPERMS}" = "r" ]; then
# Check if we are root, or have the read bit
if [ "${MYID}" = "0" -o "${OTHERPERMS}" = "r" ]; then
CANREAD=1
return 0
LogText "Result: file ${sFILE} is readable (or directory accessible)."