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>2019-04-08 08:53:04 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-04-08 08:53:04 +0300
commit71a0c79053119fedfcb68d47c7b4483b16a8ec1c (patch)
tree5f255b748d1d5d30ae8c303a737fff8c7cd9f7c6
parent3516ce9de10528f08f949b09daa179e949b0596c (diff)
Corrected stdout/stderr redirection for FreeBSD pkg tool
-rw-r--r--include/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions b/include/functions
index e3a09c0c..26d8c378 100644
--- a/include/functions
+++ b/include/functions
@@ -1700,7 +1700,7 @@
################################################################################
# Name : PackageIsInstalled()
- # Description : Add a separator to log file between sections, tests etc
+ # Description : Determines if a package is installed
# Returns : exit code
# Notes : this function is not used yet, but created in advance to allow
# the addition of support for all operating systems
@@ -1725,7 +1725,7 @@
output=$(${EQUERYBINARY} --quiet ${package} > /dev/null 2>&1)
exit_code=$? # 0=package installed, 3=package not installed
elif [ ! -z "${PKG_BINARY}" ]; then
- output=$(${PKG_BINARY} -N info ${package} >& /dev/null)
+ output=$(${PKG_BINARY} -N info ${package} >/dev/null 2>&1)
exit_code=$? # 0=package installed, 70=invalid package
elif [ ! -z "${RPMBINARY}" ]; then
output=$(${RPMBINARY} --quiet -q ${package} > /dev/null 2>&1)