diff options
Diffstat (limited to 'debian')
-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); |