mirror of https://github.com/CISOfy/lynis.git
Changes to comments only
This commit is contained in:
parent
78f32c2f28
commit
6fbe0e95c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue