diff options
author | Greg Price <price@mit.edu> | 2008-11-12 16:32:41 -0800 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:28 -0800 |
commit | 53e1fe8f90939d6b7586cf6a6d78214dc9ef7b2e (patch) | |
tree | 48ee0b5163c64747678d891336fcb9c02b5ba460 /debian/local | |
parent | 8bd51b7cb0d320976eb10d9ba4d35b4418f26e0c (diff) | |
download | pam-53e1fe8f90939d6b7586cf6a6d78214dc9ef7b2e.tar.gz pam-53e1fe8f90939d6b7586cf6a6d78214dc9ef7b2e.tar.bz2 pam-53e1fe8f90939d6b7586cf6a6d78214dc9ef7b2e.zip |
ignore removed profiles when detecting an empty set
Diffstat (limited to 'debian/local')
-rwxr-xr-x | debian/local/pam-auth-update | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index 0c9dfcd5..3dedd40e 100755 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -118,14 +118,16 @@ if (-e $savedir . '/seen') { } close(SEEN); } + +# filter out any options that are no longer available for any reason +@enabled = grep { $profiles{$_} } @enabled; + # an empty module set is an error, so in that case grab all the defaults if (!@enabled) { %seen = (); $priority = 'high' unless ($force); } -# filter out any options that are no longer available for any reason -@enabled = grep { $profiles{$_} } @enabled; # add any previously-unseen configs push(@enabled, grep { $profiles{$_}->{'Default'} eq 'yes' && !$seen{$_} } @sorted); |