diff --git a/include/tests_authentication b/include/tests_authentication index 251060d1..ad24a432 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -811,11 +811,11 @@ logtext "Test: Checking umask value in /etc/profile" FIND=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }'` FIND2=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }' | wc -l` - #FIND2=`egrep "^([[:space:]])([[:tab:]])*umask" /etc/profile | awk '{ print $2 }' | wc -l` WEAK_UMASK=0 FOUND_UMASK=0 if [ "${FIND2}" = "0" ]; then logtext "Result: did not find umask in /etc/profile" + #YYY possibly weak umask elif [ "${FIND2}" = "1" ]; then logtext "Result: found umask (prefixed with spaces)" FOUND_UMASK=1