diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-04 22:59:52 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-04 22:59:52 +0300 |
commit | 90f196f06705ea89ddef80afb7cb31880754c6a2 (patch) | |
tree | 043077a89fabaf3c75e081a485741ee41c2300e8 /include | |
parent | 412613e14cfa7ff55a0b17fcfeb1ef4d2edda41b (diff) |
[PKGS-7381] Check for vuln.xml file
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_ports_packages | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 82d6408d..482cbb17 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -611,11 +611,11 @@ # # Test : PKGS-7381 # Description : Check for vulnerable FreeBSD packages (with pkg) - if [ -x /usr/sbin/pkg -a /var/db/pkg/vuln.xml ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi + if [ -x /usr/sbin/pkg -a -f /var/db/pkg/vuln.xml ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no PKGS-7381 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for vulnerable FreeBSD packages with pkg" if [ ${SKIPTEST} -eq 0 ]; then if [ -x /usr/sbin/pkg ]; then - FIND=`/usr/sbin/pkg audit | grep 'problem(s) in your installed packages found' | grep -v '0 problem(s) in your installed packages found'` + FIND=`/usr/sbin/pkg audit 2> /dev/null | grep 'problem(s) in your installed packages found' | grep -v '0 problem(s) in your installed packages found'` PACKAGE_AUDIT_TOOL_FOUND=1 PACKAGE_AUDIT_TOOL="pkg audit" if [ "${FIND}" = "" ]; then |