mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
[SSH-7408]: Implemented '!' test type.
This commit is contained in:
parent
d191bed2d7
commit
c394024769
@ -160,6 +160,16 @@
|
||||
else
|
||||
RESULT="UNKNOWN"
|
||||
fi
|
||||
|
||||
elif [ "${TESTTYPE}" = "!" ]; then
|
||||
if [ "${FOUNDVALUE}" = "${WEAKVALUE}" ]; then
|
||||
RESULT="WEAK"
|
||||
elif [ ! "${FOUNDVALUE}" = "${WEAKVALUE}" ]; then
|
||||
RESULT="GOOD"
|
||||
else
|
||||
RESULT="UNKNOWN"
|
||||
fi
|
||||
|
||||
else
|
||||
RESULT="NONE"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user