mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Use PATH variable as first method to scan directories
This commit is contained in:
parent
541996f672
commit
b4758e0b23
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@
|
|||
BINARY_PATHS_FOUND=""; COUNT=0
|
||||
Display --indent 2 --text "- Checking system binaries..."
|
||||
LogText "Status: Starting binary scan..."
|
||||
|
||||
# Test if our PATH variable provides a set of paths (otherwise we use predefined list in include/consts)
|
||||
if [ ! -z "${PATH}" ]; then BIN_PATHS=$(echo ${PATH} | tr ':' ' '); fi
|
||||
|
||||
for SCANDIR in ${BIN_PATHS}; do
|
||||
LogText "Test: Checking binaries in directory ${SCANDIR}"
|
||||
ORGPATH=""
|
||||
|
|
|
|||
Loading…
Reference in a new issue