Merge pull request #19 from d4t4king/master

Minor tweak to glsa-check to show '0' when all tests are compliant
This commit is contained in:
Michael Boelen 2014-10-13 10:36:28 +02:00
commit 382e0f8c4f
1 changed files with 1 additions and 1 deletions

View File

@ -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"