mirror of https://github.com/CISOfy/lynis.git
Quote binary variables during SUID/GID enumeration
Fixes cisofy/lynis#1078. Signed-off-by: Simon Biewald <sbiewald@fam-biewald.de>
This commit is contained in:
parent
22a9fe7037
commit
f695488ca8
|
@ -119,11 +119,11 @@
|
|||
COUNT=$((COUNT + 1))
|
||||
BINARY="${SCANDIR}/${FILENAME}"
|
||||
DISCOVERED_BINARIES="${DISCOVERED_BINARIES}${BINARY} "
|
||||
if [ -u ${BINARY} ]; then
|
||||
if [ -u "${BINARY}" ]; then
|
||||
NSUID_BINARIES=$((NSUID_BINARIES + 1))
|
||||
SUID_BINARIES="${SUID_BINARIES}${BINARY} "
|
||||
fi
|
||||
if [ -g ${BINARY} ]; then
|
||||
if [ -g "${BINARY}" ]; then
|
||||
NSGID_BINARIES=$((NSGID_BINARIES + 1))
|
||||
SGID_BINARIES="${SGID_BINARIES}${BINARY} "
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue