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:
-rw-r--r--include/binaries4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/binaries b/include/binaries
index b48e63af..ee2818e5 100644
--- a/include/binaries
+++ b/include/binaries
@@ -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=""