mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 16:54:26 +02:00
Removed unneeded field for warnings and suggestions
This commit is contained in:
parent
1c1950e5fe
commit
387df54859
@ -109,7 +109,7 @@
|
|||||||
Display --indent 4 --text "- Checking consistency of /etc/group file" --result "${STATUS_WARNING}" --color RED
|
Display --indent 4 --text "- Checking consistency of /etc/group file" --result "${STATUS_WARNING}" --color RED
|
||||||
LogText "Result: chkgrp found some errors. Run the tool manually to see details."
|
LogText "Result: chkgrp found some errors. Run the tool manually to see details."
|
||||||
LogText "chkgrp output: ${FIND}"
|
LogText "chkgrp output: ${FIND}"
|
||||||
ReportWarning ${TEST_NO} "M" "chkgrp reported inconsistencies in /etc/group file"
|
ReportWarning ${TEST_NO} "chkgrp reported inconsistencies in /etc/group file"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
@ -128,12 +128,12 @@
|
|||||||
"Linux")
|
"Linux")
|
||||||
if [ "${LINUX_VERSION}" = "SuSE" ]; then
|
if [ "${LINUX_VERSION}" = "SuSE" ]; then
|
||||||
FIND=$(${GRPCKBINARY} -q -r > /dev/null ; echo $?)
|
FIND=$(${GRPCKBINARY} -q -r > /dev/null ; echo $?)
|
||||||
else
|
else
|
||||||
FIND=$(${GRPCKBINARY} -r 2> /dev/null ; echo $?)
|
FIND=$(${GRPCKBINARY} -r 2> /dev/null ; echo $?)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*) FIND=$(${GRPCKBINARY} 2> /dev/null ; echo $?) ;;
|
*) FIND=$(${GRPCKBINARY} 2> /dev/null ; echo $?) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check exit-code
|
# Check exit-code
|
||||||
if [ "${FIND}" = "0" ]; then
|
if [ "${FIND}" = "0" ]; then
|
||||||
@ -141,8 +141,7 @@
|
|||||||
LogText "Result: grpck binary didn't find any errors in the group files"
|
LogText "Result: grpck binary didn't find any errors in the group files"
|
||||||
else
|
else
|
||||||
Display --indent 2 --text "- Consistency of group files (grpck)" --result "${STATUS_WARNING}" --color RED
|
Display --indent 2 --text "- Consistency of group files (grpck)" --result "${STATUS_WARNING}" --color RED
|
||||||
ReportWarning ${TEST_NO} "M" "grpck binary found errors in one or more group files"
|
ReportWarning ${TEST_NO} "grpck binary found errors in one or more group files"
|
||||||
ReportSuggestion ${TEST_NO} "Run grpck manually and check your group files"
|
|
||||||
fi
|
fi
|
||||||
unset FIND
|
unset FIND
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user