diff options
author | Steve Langasek <vorlon@debian.org> | 2008-10-15 15:44:49 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:28 -0800 |
commit | 56f0673e67df64f6059ecb840ff9d707f4eb8004 (patch) | |
tree | 8a79dea27f0be12eac5f9abf16e77ad318d68b2c /debian/local | |
parent | 04882fdbd64d43f17b11f1b8a8a562e3501cff80 (diff) |
Use -Initial only for the first profile, even when there's no explicit -Initial
config for that first profile
Diffstat (limited to 'debian/local')
-rwxr-xr-x | debian/local/pam-auth-update | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index 1bf0a851..ddf650ae 100755 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -466,10 +466,9 @@ sub write_profiles next if (!$profiles->{$mod}{$uctype . '-Type'}); next if ($profiles->{$mod}{$uctype . '-Type'} eq 'Additional'); - if ($i == 0 && $profiles->{$mod}{$uctype . '-Initial'}) + if ($i++ == 0 && $profiles->{$mod}{$uctype . '-Initial'}) { $output = $profiles->{$mod}{$uctype . '-Initial'}; - $i++; } else { $output = $profiles->{$mod}{$uctype}; } @@ -485,10 +484,9 @@ sub write_profiles next if (!$profiles->{$mod}{$uctype . '-Type'}); next if ($profiles->{$mod}{$uctype . '-Type'} eq 'Primary'); - if ($i == 0 && $profiles->{$mod}{$uctype . '-Initial'}) + if ($i++ == 0 && $profiles->{$mod}{$uctype . '-Initial'}) { $output = $profiles->{$mod}{$uctype . '-Initial'}; - $i++; } else { $output = $profiles->{$mod}{$uctype}; } |