Match for sulogin fails to detect inittab entry (#356)

A valid inittab entry was missed. Gentoo delivers an inittab
containing su1:S:wait:/sbin/sulogin
This commit is contained in:
ryneeverett 2017-02-21 14:26:32 +00:00 committed by Michael Boelen
parent 08b6a40751
commit f5d70a6889
1 changed files with 1 additions and 1 deletions

View File

@ -905,7 +905,7 @@
TEST_PERFORMED=1
LogText "Result: file /etc/inittab exists"
LogText "Test: checking presence sulogin for single user mode"
FIND=$(${EGREPBINARY} "^~~:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
FIND=$(${EGREPBINARY} "^[a-zA-Z0-9]+:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
FIND2=$(${EGREPBINARY} "^su:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
if [ ! -z "${FIND}" -o ! -z "${FIND2}" ]; then
FOUND=1