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:
authorEric Light <eric@ericlight.com>2016-03-07 05:15:22 +0300
committerEric Light <eric@ericlight.com>2016-03-07 05:15:22 +0300
commite40a3562fb861d5341f2964e7e14c005a2ab7722 (patch)
tree8e6068a1785284001d26af97369a886c728df61f /include/tests_nameservices
parent2b95019b628043bb0718b9280c344fbcf5581768 (diff)
Make NAME-4404 case-insensitive
Diffstat (limited to 'include/tests_nameservices')
-rw-r--r--include/tests_nameservices2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_nameservices b/include/tests_nameservices
index 7f807618..4115f678 100644
--- a/include/tests_nameservices
+++ b/include/tests_nameservices
@@ -619,7 +619,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: Check /etc/hosts contains an entry for this server name"
if [ -f /etc/hosts ]; then
- sFIND=`egrep -v '^(#|$|^::1\s|localhost)' /etc/hosts | grep ${HOSTNAME}`
+ sFIND=`egrep -v '^(#|$|^::1\s|localhost)' /etc/hosts | grep -i ${HOSTNAME}`
if [ "${sFIND}" != "" ]; then
LogText "Result: Found entry for ${HOSTNAME} in /etc/hosts"
Display --indent 4 --text "- Checking /etc/hosts (hostname)" --result OK --color GREEN