mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
* 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
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue