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:
authortheycallhimpat <reillypk@gmail.com>2018-12-17 11:53:27 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-12-17 11:53:27 +0300
commit0f32d2725c3a657d02e186e6ca647c21510b21dc (patch)
treed0febd2c4b0244c13f68dda644b707406bd27f43 /include
parenta026681a06075f282d2c5126eff0905bd544826d (diff)
Fix printed error when wget comes from busybox (#602)
Busybox's wget does't provide the -V parameter to get the version, so redirect stderr to /dev/null to hide the printed error message
Diffstat (limited to 'include')
-rw-r--r--include/binaries2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/binaries b/include/binaries
index a33e610f..89d9c107 100644
--- a/include/binaries
+++ b/include/binaries
@@ -235,7 +235,7 @@
vgdisplay) VGDISPLAYBINARY="${BINARY}"; LogText " Found known binary: vgdisplay (LVM tool) - ${BINARY}" ;;
vmtoolsd) VMWARETOOLSDBINARY="${BINARY}"; LogText " Found known binary: vmtoolsd (VMWare tools) - ${BINARY}" ;;
wc) WCBINARY="${BINARY}"; LogText " Found known binary: wc (word count) - ${BINARY}" ;;
- wget) WGETBINARY="${BINARY}"; WGETVERSION=$(${BINARY} -V | grep "^GNU Wget" | awk '{ print $3 }'); LogText "Found ${BINARY} (version ${WGETVERSION})" ;;
+ wget) WGETBINARY="${BINARY}"; WGETVERSION=$(${BINARY} -V 2> /dev/null | grep "^GNU Wget" | awk '{ print $3 }'); LogText "Found ${BINARY} (version ${WGETVERSION})" ;;
yum) YUMBINARY="${BINARY}"; LogText " Found known binary: yum (package manager) - ${BINARY}" ;;
xargs) XARGSBINARY="${BINARY}"; LogText " Found known binary: xargs (command output redirection) - ${BINARY}" ;;
zgrep) ZGREPBINARY=${BINARY}; LogText " Found known binary: zgrep (text search for compressed files) - ${BINARY}" ;;