mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 07:15:07 +02:00
[FILE-6310] filter on correct field for AIX
This commit is contained in:
parent
59b102989f
commit
61d8c91eeb
@ -48,7 +48,11 @@
|
|||||||
Display --indent 4 --text "- Checking ${I} mount point" --result SYMLINK --color WHITE
|
Display --indent 4 --text "- Checking ${I} mount point" --result SYMLINK --color WHITE
|
||||||
elif [ -d ${I} ]; then
|
elif [ -d ${I} ]; then
|
||||||
LogText "Result: directory ${I} exists"
|
LogText "Result: directory ${I} exists"
|
||||||
FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($3==MP) { print $3 }}')
|
case "${OS}" in
|
||||||
|
"AIX") FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($2==MP) { print $2 }}') ;;
|
||||||
|
*) FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($3==MP) { print $3 }}') ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if IsEmpty "${FIND}"; then
|
if IsEmpty "${FIND}"; then
|
||||||
LogText "Result: ${I} not found in mount list. Directory most likely stored on / file system"
|
LogText "Result: ${I} not found in mount list. Directory most likely stored on / file system"
|
||||||
Display --indent 4 --text "- Checking ${I} mount point" --result "${STATUS_SUGGESTION}" --color YELLOW
|
Display --indent 4 --text "- Checking ${I} mount point" --result "${STATUS_SUGGESTION}" --color YELLOW
|
||||||
|
Loading…
x
Reference in New Issue
Block a user