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:
authordataking <dataking@gmail.com>2019-02-28 11:51:57 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-02-28 11:51:57 +0300
commit76ec39176a67e04b462443a685a03ec09d5cee1b (patch)
tree97ffff6846d7ce3639de7e8b8ae709fb1508b992
parent7ae90d6405f35d7c2d7f745eae2f1f100079a3fb (diff)
Fix #638. (#640)
* fix for issue #453; simply add RPi/Raspian path to PAM_FILE_LOCATIONS * Only use data before # to handle inline comments in /etc/resolv.conf.
-rw-r--r--include/tests_networking2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking
index 69fcb4ae..e2503b60 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -123,7 +123,7 @@
LogText "Test: Checking /etc/resolv.conf file"
if [ -f /etc/resolv.conf ]; then
LogText "Result: Found /etc/resolv.conf file"
- FIND=$(${GREPBINARY} '^nameserver' /etc/resolv.conf | ${TRBINARY} -d '\t' | ${SEDBINARY} 's/nameserver*//g' | uniq)
+ FIND=$(${GREPBINARY} '^nameserver' /etc/resolv.conf | ${TRBINARY} -d '\t' | ${SEDBINARY} 's/nameserver*//g' | uniq | ${CUTBINARY} -d# -f1)
if [ ! -z "${FIND}" ]; then
Display --indent 4 --text "- Testing nameservers"
LogText "Test: Querying nameservers"