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:
authorMichael Boelen <michael@cisofy.com>2016-03-08 10:08:31 +0300
committerMichael Boelen <michael@cisofy.com>2016-03-08 10:08:31 +0300
commite9edd2dd0997e85264a657feff22c1baa748dd7a (patch)
tree222c4e2d04aa240e5d1703ded70a41444bf1d301
parent607978a89d3b7205f642cc699acc367cb4b0d4a5 (diff)
parente40a3562fb861d5341f2964e7e14c005a2ab7722 (diff)
Merge pull request #129 from rhyven/patch-3
Make NAME-4404 case-insensitive
-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