Log when a file is world-writable according IsWorldWritable

This commit is contained in:
mboelen 2016-04-26 13:34:17 +02:00
parent 4791b8a6bf
commit 2cefdb79d6
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@
# Only check the file if it isn't a symlink (after previous check)
if [ -f ${sFILE} -a ! -L ${sFILE} ]; then
FINDVAL=`ls -l ${sFILE} | cut -c 9`
if [ "${FINDVAL}" = "w" ]; then return 0; else return 1; fi
if [ "${FINDVAL}" = "w" ]; then return 0; LogText "IsWorldWritable: file ${sFILE} is world-writable"; else return 1; fi
else
return 255
fi