mirror of https://github.com/CISOfy/lynis.git
* 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.
This commit is contained in:
parent
7ae90d6405
commit
76ec39176a
|
@ -123,7 +123,7 @@
|
||||||
LogText "Test: Checking /etc/resolv.conf file"
|
LogText "Test: Checking /etc/resolv.conf file"
|
||||||
if [ -f /etc/resolv.conf ]; then
|
if [ -f /etc/resolv.conf ]; then
|
||||||
LogText "Result: Found /etc/resolv.conf file"
|
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
|
if [ ! -z "${FIND}" ]; then
|
||||||
Display --indent 4 --text "- Testing nameservers"
|
Display --indent 4 --text "- Testing nameservers"
|
||||||
LogText "Test: Querying nameservers"
|
LogText "Test: Querying nameservers"
|
||||||
|
|
Loading…
Reference in New Issue