diff --git a/include/functions b/include/functions index cba3cfad..b8e817e6 100644 --- a/include/functions +++ b/include/functions @@ -1182,6 +1182,10 @@ FOUNDPATH=0 # Check for symlink if [ -L ${sFILE} ]; then + if [ ${BINARY_SCAN_FINISHED} -eq 0 -a "${READLINKBINARY}" = "" ]; then + FIND=`which readlink` + if [ ! "${FIND}" = "" ]; then logtext "Setting temporary readlinkbinary variable"; READLINKBINARY="${FIND}"; fi + fi if [ ! "${READLINKBINARY}" = "" ]; then tFILE=`${READLINKBINARY} -f ${sFILE}` # Check if we can find the file now