fix #1582 suspicious history test is not checking the user folder

This commit is contained in:
mrpjl 2024-12-08 11:41:33 +00:00
parent 2a540ddf75
commit 0f04275b3f
No known key found for this signature in database
GPG Key ID: 8961D982CB41F033
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ EOF
# Solaris doesn't support -maxdepth
FIND=$(${FINDBINARY} ${HOMEDIRS} -name ".*history" ! -type f -print)
else
FIND=$(${FINDBINARY} ${HOMEDIRS} -maxdepth 1 -name ".*history" ! -type f -print)
FIND=$(${FINDBINARY} ${HOMEDIRS} -maxdepth 2 -name ".*history" ! -type f -print)
fi
if [ -z "${FIND}" ]; then
Display --indent 2 --text "- Checking shell history files" --result "${STATUS_OK}" --color GREEN