diff options
author | ryneeverett <ryneeverett@gmail.com> | 2017-02-21 17:26:32 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-02-21 17:26:32 +0300 |
commit | f5d70a6889bf347e5ed89d3fbcc24c971250a1bb (patch) | |
tree | 223db814b6a607ab35e09fde3851ea5cd4343f86 /include/tests_authentication | |
parent | 08b6a40751f6f69caeeda385740d5c3a42f220a9 (diff) |
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
Diffstat (limited to 'include/tests_authentication')
-rw-r--r-- | include/tests_authentication | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication index 9727be06..2bc48074 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -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 |