summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-20 02:00:33 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:25 -0800
commit1d7380b2c2b4798ea7420cffaea6dbcb14d640c0 (patch)
tree4dbb6689540522a0344f93f5cd549b81f97ad830
parent1ab20df551a98c4ec85d87a250d8e2174599166c (diff)
handle the case where there are no modules selected at all; this is an error,
but we should recover gracefully to let the user un-break their system.
-rwxr-xr-xdebian/local/pam-auth-update1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 260453d7..532ced6d 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -404,6 +404,7 @@ sub diff_profiles
my ($sourcedir,$savedir) = @_;
my (%diff);
+ @{$diff{'mods'}} = ();
# Load the saved config from /var/lib/pam, then iterate through all
# lines in the current config that are in the managed block.
# If anything fails here, just return immediately since we then