summaryrefslogtreecommitdiff
path: root/debian/local
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-10-15 15:44:08 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:28 -0800
commit04882fdbd64d43f17b11f1b8a8a562e3501cff80 (patch)
tree852b0ef9d27cf485c99328a8855b5e8c710ab9ef /debian/local
parent7672b834f54fe03b7a1288ecf13967a4179fc10b (diff)
output a generic pam_permit line if the primary block is empty
Diffstat (limited to 'debian/local')
-rwxr-xr-xdebian/local/pam-auth-update7
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;