diff options
Diffstat (limited to 'debian/local/pam-auth-update')
-rw-r--r-- | debian/local/pam-auth-update | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index 17d3fc66..60eb1e8f 100644 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -671,7 +671,7 @@ sub parse_pam_profile my %profile; open(PROFILE, $profile) || die "could not read profile $profile: $!"; while (<PROFILE>) { - if (/^(\S+):\s+(.*)$/) { + if (/^(\S+):\s+(.*)\s*$/) { $fieldname = $1; # compatibility with the first implementation round; # "Auth-Final" is now just called "Auth" @@ -686,6 +686,7 @@ sub parse_pam_profile } else { chomp; s/^\s+//; + s/\s+$//; $profile{$fieldname} .= "\n$_" if ($_); $profile{$fieldname} =~ s/^[\n\s]+//; } |