Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/tests_nameservices')
-rw-r--r--include/tests_nameservices4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_nameservices b/include/tests_nameservices
index 51c28311..1881bd1b 100644
--- a/include/tests_nameservices
+++ b/include/tests_nameservices
@@ -658,11 +658,11 @@
#
# Test : NAME-4408
# Description : Check localhost entry
- if [ ! -z "${GETENTBINARY}" ]; then PREQS_MET="YES"; SKIPREASON="No getent binary"; else PREQS_MET="NO"; SKIPREASON=""; fi
+ if [ ! -z "${GETENT_BINARY}" ]; then PREQS_MET="YES"; SKIPREASON="No getent binary"; else PREQS_MET="NO"; SKIPREASON=""; fi
Register --test-no NAME-4408 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight L --network NO --category security --description "Check localhost entry"
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: Check server hostname not locally mapped in /etc/hosts"
- FIND=$(${GETENTBINARY} hosts localhost | ${AWKBINARY} '{print $1}')
+ FIND=$(${GETENT_BINARY} hosts localhost | ${AWKBINARY} '{print $1}')
if [ "${FIND}" = "127.0.0.1" ]; then
LogText "Result: localhost mapped to 127.0.0.1"
Display --indent 4 --text "- Checking /etc/hosts (localhost to IP)" --result "${STATUS_OK}" --color GREEN