mirror of https://github.com/CISOfy/lynis.git
Do not use find command when busybox is used
This commit is contained in:
parent
e685182b18
commit
32a895c843
|
@ -246,11 +246,13 @@
|
|||
if [ -z "${DATA}" ]; then
|
||||
case ${OS} in
|
||||
"AIX")
|
||||
ReportException "HasCorrectFilePermissions:01" "OS not supported yet"
|
||||
Debug "Skipping find command, as AIX does not support -printf"
|
||||
;;
|
||||
*)
|
||||
# Does not work for AIX
|
||||
DATA=$(${FINDBINARY} ${CHECKFILE} -printf "%m")
|
||||
# Only use find when OS is NOT AIX and binaries are NOT busybox
|
||||
if [ ${SHELL_IS_BUSYBOX} -eq 0 ]; then
|
||||
DATA=$(${FINDBINARY} ${CHECKFILE} -printf "%m")
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue