From 0f04275b3f3155c7d0fe3cbbf25d6ebf35c5c6bf Mon Sep 17 00:00:00 2001 From: mrpjl <32455878+mrpjl@users.noreply.github.com> Date: Sun, 8 Dec 2024 11:41:33 +0000 Subject: [PATCH] fix #1582 suspicious history test is not checking the user folder --- include/tests_homedirs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_homedirs b/include/tests_homedirs index 77de47f4..ab3e14f0 100644 --- a/include/tests_homedirs +++ b/include/tests_homedirs @@ -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