diff options
Diffstat (limited to 'debian/local/pam-auth-update')
-rwxr-xr-x | debian/local/pam-auth-update | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index b8cff47b..1bf0a851 100755 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -311,6 +311,13 @@ sub create_from_template # block, let's try not to jump off the stack... $count-- if ($val eq 'Additional'); + # no primary block, so output a stock pam_permit line + # to keep the stack intact + if ($val eq 'Primary' && $count == 0) + { + print OUTPUT "$type\trequired\t\tpam_permit.so\n"; + } + $i = 0; for my $mod (@{$enabled}) { my $output; |