diff --git a/include/functions b/include/functions index bede7d9a..8baf6562 100644 --- a/include/functions +++ b/include/functions @@ -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