From 59b102989f95c245da9814dd417f570a061344dc Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 6 Jun 2019 14:13:05 +0200 Subject: [PATCH] [AUTH-9268] AIX find does not support maxdepth --- include/tests_authentication | 4 ++-- 1 file 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)