diff --git a/include/functions b/include/functions index a620da01..b29a29e9 100644 --- a/include/functions +++ b/include/functions @@ -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