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.boelen@cisofy.com>2020-04-03 10:37:52 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-04-03 10:40:30 +0300
commitf25ffdbb1f2402a8aa896882be0a79fd2da763ae (patch)
treeda68ec3b86d9620727f83355781f89bae3cd8794 /include/tests_networking
parent38a5c2cb79bdf56352555f08472b9ea5c77d0e1f (diff)
[NETW-2706] redirect errors to stderr
Diffstat (limited to 'include/tests_networking')
-rw-r--r--include/tests_networking2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking
index b182f605..ebca4ee2 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -197,7 +197,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
SKIP=0
if [ -n "${RESOLVECTLBINARY}" ]; then
- DNSSEC_STATUS=$(${RESOLVECTLBINARY} statistics | ${AWKBINARY} -F ":" '/DNSSEC supported/ { print $2 }' | ${TRBINARY} -d ' ')
+ DNSSEC_STATUS=$(${RESOLVECTLBINARY} statistics 2> /dev/null | ${AWKBINARY} -F ":" '/DNSSEC supported/ { print $2 }' | ${TRBINARY} -d ' ')
if [ "${DNSSEC_STATUS}" = "yes" ]; then
Display --indent 4 --text "- DNSSEC supported (systemd-resolved)" --result "${STATUS_OK}" --color GREEN
LogText "Result: DNSSEC supported by systemd-resolved and upstream DNS servers"