mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
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
|
if [ -z "${DATA}" ]; then
|
||||||
case ${OS} in
|
case ${OS} in
|
||||||
"AIX")
|
"AIX")
|
||||||
ReportException "HasCorrectFilePermissions:01" "OS not supported yet"
|
Debug "Skipping find command, as AIX does not support -printf"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Does not work for AIX
|
# Only use find when OS is NOT AIX and binaries are NOT busybox
|
||||||
DATA=$(${FINDBINARY} ${CHECKFILE} -printf "%m")
|
if [ ${SHELL_IS_BUSYBOX} -eq 0 ]; then
|
||||||
|
DATA=$(${FINDBINARY} ${CHECKFILE} -printf "%m")
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user