Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-21 15:56:10 +0300
committerGitHub <noreply@github.com>2020-03-21 15:56:10 +0300
commit4e0357d7282501d607894a70f22579babaca9857 (patch)
treed2ff8430aebd1874482a1a02560374db1d28fca1 /plugins
parent9241e7c9259751ce854b2636131e4d146ec3488d (diff)
parent9087de0dacbe3184f8dbe86e1a7525a44dda8473 (diff)
Merge pull request #863 from topimiettinen/pam-ignore-dash
pam: ignore leading dash
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_pam_phase12
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugin_pam_phase1 b/plugins/plugin_pam_phase1
index 46f2e67a..457c186a 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")