From 04882fdbd64d43f17b11f1b8a8a562e3501cff80 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 15 Oct 2008 15:44:08 -0700 Subject: output a generic pam_permit line if the primary block is empty --- debian/local/pam-auth-update | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.3