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:
authorMichael Boelen <michael.boelen@cisofy.com>2019-06-06 15:13:05 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-06-06 15:13:05 +0300
commit59b102989f95c245da9814dd417f570a061344dc (patch)
tree5df228824b546df21ecb150d816b44d5432336a9
parenta64e3966c9cc419bcbe86806a11a1d1daf054409 (diff)
[AUTH-9268] AIX find does not support maxdepth
-rw-r--r--include/tests_authentication4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 2ede2b7d..7b8bacda 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -669,8 +669,8 @@
if [ -d ${DIR} -a ! -L ${DIR} ]; then
LogText "Result: directory ${DIR} exists"
# Search in the specified directory
- if [ "${OS}" = "Solaris" ]; then
- # Solaris does not support -maxdepth
+ if [ "${OS}" = "AIX" -o "${OS}" = "Solaris" ]; then
+ # AIX/Solaris does not support -maxdepth
FIND=$(find ${DIR} -type f -name "pam_*.so" -print | sort)
else
FIND=$(find ${DIR} -maxdepth 1 -type f -name "pam_*.so" -print | sort)