From fab2ea5e5e16381cd4f31ce0dd94a07a203b0186 Mon Sep 17 00:00:00 2001 From: d4t4king Date: Mon, 13 Oct 2014 00:19:59 -0700 Subject: [PATCH] Minor tweak to glsa-check to show '0' when all tests are compliant --- include/tests_ports_packages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 2196edc9..13439ab5 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -816,7 +816,7 @@ logtext "Result: found /usr/bin/glsa-check" logtext "Test: checking if there are any vulnerable packages" # glsa-check reports the GLSA date/ID string, not the vulnerable package. - FIND=`/usr/bin/glsa-check -t all 2>&1 | grep -v "This system is affected by the following GLSAs:" | wc -l` + FIND=`/usr/bin/glsa-check -t all 2>&1 | grep -v "This system is affected by the following GLSAs:" | grep -v "This system is not affected by any of the listed GLSAs" | wc -l` if [ "${FIND}" = "" ]; then logtext "Result: unexpected result: wc should report 0 if no vulnerable packages found." ReportSuggestion ${TEST_NO} "Check if system is up-to-date, security updates check (glsa-check) gives and unexpected result"