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 /plugins
parent1f8b5fafde1fb5dd4f8c5231240e3a8cf1afa39f (diff)
Fix uses of non-standard find not operator
Use ! rather than the non-standard -not find(1) operator.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_pam_phase14
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/plugin_pam_phase1 b/plugins/plugin_pam_phase1
index 361918de..46f2e67a 100644
--- a/plugins/plugin_pam_phase1
+++ b/plugins/plugin_pam_phase1
@@ -77,12 +77,12 @@
if [ -d ${PAM_DIRECTORY} ]; then
LogText "Result: ${PAM_DIRECTORY} exists"
if [ ! "${OS}" = "FreeBSD" -a ! "${OS}" = "NetBSD" ]; then
- FIND_FILES=$(find ${PAM_DIRECTORY} -not -name "*.pam-old" -type f -print)
+ FIND_FILES=$(find ${PAM_DIRECTORY} \! -name "*.pam-old" -type f -print)
else
if [ -f ${PAM_DIRECTORY}/README ]; then
LogText "Skipped checking ${OS} ${PAM_DIRECTORY}/README as a PAM file"
fi
- FIND_FILES=$(find ${PAM_DIRECTORY} -not -name "README" -not -name "*.pam-old" -type f -print)
+ FIND_FILES=$(find ${PAM_DIRECTORY} \! -name "README" \! -name "*.pam-old" -type f -print)
fi
for PAM_FILE in ${FIND_FILES}; do