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