mirror of https://github.com/CISOfy/lynis.git
[AUTH-9268] AIX find does not support maxdepth
This commit is contained in:
parent
a64e3966c9
commit
59b102989f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue