mirror of https://github.com/CISOfy/lynis.git
Set temporary readlink function if binary scan is not finished yet
This commit is contained in:
parent
a68b226d3a
commit
8454ac7baf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue