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>2016-10-15 17:22:18 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-15 17:22:18 +0300
commitf1c3c23cae183d11ca825ac5cf5b2f3c6a7aded6 (patch)
tree3a26cc34dfe6464b702ddc80c2994076debf23e4 /include/tests_ports_packages
parent8777a5e616edeae39c93223055a9eafb113d4256 (diff)
Corrected error redirection
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 5cc9ed06..0f5a3e0b 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -658,7 +658,7 @@
COUNT=0
PACKAGE_AUDIT_TOOL_FOUND=1
PACKAGE_AUDIT_TOOL="pkg audit"
- FIND=$(/usr/sbin/pkg audit 2>&1 /dev/null)
+ FIND=$(/usr/sbin/pkg audit > /dev/null 2>&1)
if [ $? -eq 0 ]; then
LogText "Result: pkg audit results are clean"
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN