summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-10-15 15:48:22 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:28 -0800
commit929c07f5a9d887e1f58147439f248078fa3493a4 (patch)
tree3bbc4a4b632abe133270fedfe83c998d366efedf
parent56f0673e67df64f6059ecb840ff9d707f4eb8004 (diff)
output a generic pam_permit line if the primary block is empty
-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 ddf650ae..fe793ef5 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -478,6 +478,13 @@ sub write_profiles
}
}
+ # no primary block, so output a stock pam_permit line
+ if ($i == 0)
+ {
+ print OUTPUT "Module: null\n";
+ print OUTPUT "required\t\tpam_permit.so\n";
+ }
+
$i = 0;
for my $mod (@{$enabled}) {
my $output;