From 32a895c843eee0b055fcddb995b32e3655177515 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 20 Aug 2019 15:57:04 +0200 Subject: [PATCH] Do not use find command when busybox is used --- include/functions | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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