mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-20 20:34:32 +02:00
[CUPS-2308] removed exception handler, improved logging
This commit is contained in:
parent
72aed70677
commit
90e240cfb5
@ -146,12 +146,11 @@
|
||||
N=$((N + 1))
|
||||
FOUND=1
|
||||
done
|
||||
if [ ${FOUND} -eq 0 ]; then
|
||||
ReportException "${TEST_NO}:1" "No listen statement found in CUPS configuration file"
|
||||
fi
|
||||
|
||||
# Check if daemon is only running on localhost
|
||||
if [ ${N} -eq 1 ]; then
|
||||
if [ ${FOUND} -eq 0 ]; then
|
||||
LogText "Result: no listen statement found in CUPS configuration file"
|
||||
elif [ ${N} -eq 1 ]; then
|
||||
if [ "${FIND}" = "localhost:631" -o "${FIND}" = "127.0.0.1:631" ]; then
|
||||
LogText "Result: CUPS daemon only running on localhost"
|
||||
AddHP 2 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user