mirror of https://github.com/CISOfy/lynis.git
Added additional debug information for symlink function
This commit is contained in:
parent
6f893ea3b4
commit
badd27ac7e
|
@ -1185,7 +1185,9 @@
|
|||
if [ ! "${READLINKBINARY}" = "" ]; then
|
||||
tFILE=`${READLINKBINARY} -f ${sFILE}`
|
||||
# Check if we can find the file now
|
||||
if [ -f ${tFILE} ]; then
|
||||
if [ "${tFILE}" = "" ]; then
|
||||
logtext "Result: command did not return any value"
|
||||
elif [ -f ${tFILE} ]; then
|
||||
sFILE="${tFILE}"
|
||||
logtext "Result: symlink found, pointing to file ${sFILE}"
|
||||
FOUNDPATH=1
|
||||
|
@ -1223,7 +1225,11 @@
|
|||
logtext "Result: file ${tFILE} in ${tDIR} not found"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
logtext "Result: no readlink binary available to determine symlink location"
|
||||
fi
|
||||
else
|
||||
logtext "Result: file not a symlink"
|
||||
fi
|
||||
# Now check if our new location is actually a file or directory destination
|
||||
if [ -L ${sFILE} ]; then
|
||||
|
|
Loading…
Reference in New Issue