[AUTH-9308] Test for tilde in inittab for Debian systems

This commit is contained in:
Michael Boelen 2017-02-28 20:18:47 +01:00
parent 5668f7bed1
commit 9cf25723e0
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} "^[a-zA-Z0-9]+: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