From 9087de0dacbe3184f8dbe86e1a7525a44dda8473 Mon Sep 17 00:00:00 2001 From: Topi Miettinen Date: Thu, 19 Mar 2020 20:55:23 +0200 Subject: pam: ignore leading dash PAM rules may have a leading '-' character to indicate that if the module is missing, the error will be ignored, so let's ignore it in the check. Signed-off-by: Topi Miettinen --- plugins/plugin_pam_phase1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/plugin_pam_phase1 b/plugins/plugin_pam_phase1 index 361918de..50a86a6f 100644 --- a/plugins/plugin_pam_phase1 +++ b/plugins/plugin_pam_phase1 @@ -96,7 +96,7 @@ PAM_CONTROL_OPTIONS="-" PAM_MODULE="-" PAM_MODULE_OPTIONS="-" - PAM_TYPE=$(echo ${LINE} | awk '{ print $1 }') + PAM_TYPE=$(echo ${LINE} | awk '{ print $1 }' | sed 's/^ *-//g') PARSELINE=0 case ${PAM_TYPE} in "@include") -- cgit v1.2.3