From 2cefdb79d6ea80d5cb897064c6e8df92312a63b4 Mon Sep 17 00:00:00 2001 From: mboelen Date: Tue, 26 Apr 2016 13:34:17 +0200 Subject: [PATCH] Log when a file is world-writable according IsWorldWritable --- include/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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