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>2015-07-15 14:05:15 +0300
committerMichael Boelen <michael@cisofy.com>2015-07-15 14:05:15 +0300
commitbcfd4261d0ef6d44a0d85043af69eb3097580ba1 (patch)
tree7f19c768b458d4ac6a5a0e40c8e5cacc91c08dc5
parent4266992f6bc9167ce8a3b5e852904ec20db99f3b (diff)
parentf341b01e4d637771d978de534891f2545fabfce5 (diff)
Merge pull request #53 from jamesmacwhite/SQD-3264-fix
Fix false positive matches with unsafe ports on SQD-3624
-rw-r--r--include/tests_squid2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_squid b/include/tests_squid
index 0ce03159..98a4380c 100644
--- a/include/tests_squid
+++ b/include/tests_squid
@@ -265,7 +265,7 @@
#SQUID_DAEMON_UNSAFE_PORTS_LIST
for I in ${SQUID_DAEMON_UNSAFE_PORTS_LIST}; do
logtext "Test: Checking port ${I} in Safe_ports list"
- FIND2=`grep "^acl Safe_ports port ${I}" ${SQUID_DAEMON_CONFIG}`
+ FIND2=`grep -w "^acl Safe_ports port ${I}" ${SQUID_DAEMON_CONFIG}`
if [ "${FIND2}" = "" ]; then
Display --indent 6 --text "- Checking ACL 'Safe_ports' (port ${I})" --result "NOT FOUND" --color GREEN
AddHP 1 1