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