mirror of https://github.com/CISOfy/lynis.git
Ensure a parent directory with binaries is scanned - issue #517 on GitHub
This commit is contained in:
parent
a5cbc12734
commit
c53072e31e
|
@ -77,7 +77,8 @@
|
|||
fi
|
||||
|
||||
# Add a space to make sure we discover a related directory if it was already scanned
|
||||
FIND=$(echo ${BINARY_PATHS_FOUND} | grep ", ${SCANDIR}")
|
||||
# The grep -v is to prevent a match /usr/bin in something like /usr/bin/core_perl
|
||||
FIND=$(echo ${BINARY_PATHS_FOUND} | grep ", ${SCANDIR}" | grep -v ", ${SCANDIR}/")
|
||||
if [ ! -z "${FIND}" ]; then
|
||||
SKIPDIR=1; LogText "Result: Skipping this directory as it was already scanned"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue