mirror of https://github.com/CISOfy/lynis.git
fix #1582 suspicious history test is not checking the user folder
This commit is contained in:
parent
2a540ddf75
commit
0f04275b3f
|
@ -131,7 +131,7 @@ EOF
|
||||||
# Solaris doesn't support -maxdepth
|
# Solaris doesn't support -maxdepth
|
||||||
FIND=$(${FINDBINARY} ${HOMEDIRS} -name ".*history" ! -type f -print)
|
FIND=$(${FINDBINARY} ${HOMEDIRS} -name ".*history" ! -type f -print)
|
||||||
else
|
else
|
||||||
FIND=$(${FINDBINARY} ${HOMEDIRS} -maxdepth 1 -name ".*history" ! -type f -print)
|
FIND=$(${FINDBINARY} ${HOMEDIRS} -maxdepth 2 -name ".*history" ! -type f -print)
|
||||||
fi
|
fi
|
||||||
if [ -z "${FIND}" ]; then
|
if [ -z "${FIND}" ]; then
|
||||||
Display --indent 2 --text "- Checking shell history files" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Checking shell history files" --result "${STATUS_OK}" --color GREEN
|
||||||
|
|
Loading…
Reference in New Issue