From 8454ac7baf0149aeb98624d9888a5939be87416b Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 13 Oct 2014 19:57:15 +0200 Subject: [PATCH] Set temporary readlink function if binary scan is not finished yet --- include/functions | 4 ++++ 1 file changed, 4 insertions(+) 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