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:
authorBrian Ginsbach <brian.ginsbach@gmail.com>2020-03-20 01:10:37 +0300
committerBrian Ginsbach <brian.ginsbach@gmail.com>2020-03-20 22:37:56 +0300
commit32d1155953a04afafdbc31590ff1ae9f840bd37c (patch)
tree5d7241fd38b68bc4ef730139f9873138d9846f8f /include/tests_authentication
parent1f8b5fafde1fb5dd4f8c5231240e3a8cf1afa39f (diff)
Fix uses of non-standard find not operator
Use ! rather than the non-standard -not find(1) operator.
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 02a3bb74..b4520035 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -677,7 +677,7 @@
LogText "Result: directory /etc/pam.d exists"
Display --indent 2 --text "- PAM configuration files (pam.d)" --result "${STATUS_FOUND}" --color GREEN
LogText "Test: searching PAM configuration files"
- FIND=$(${FINDBINARY} ${ROOTDIR}etc/pam.d -not -name "*.pam-old" -type f -print | sort)
+ FIND=$(${FINDBINARY} ${ROOTDIR}etc/pam.d \! -name "*.pam-old" -type f -print | sort)
for FILE in ${FIND}; do
LogText "Found file: ${FILE}"
done