diff options
author | Topi Miettinen <toiwoton@gmail.com> | 2020-03-19 21:55:23 +0300 |
---|---|---|
committer | Topi Miettinen <toiwoton@gmail.com> | 2020-03-19 21:55:23 +0300 |
commit | 9087de0dacbe3184f8dbe86e1a7525a44dda8473 (patch) | |
tree | 00f4abb42a803812abdc248017f147baf14ac8ea /plugins | |
parent | 6d9ebe41365aaf51e41ca4bd322b93a6104e7322 (diff) |
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 <toiwoton@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/plugin_pam_phase1 | 2 |
1 files changed, 1 insertions, 1 deletions
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") |