diff options
author | Steve Langasek <vorlon@debian.org> | 2013-04-15 12:09:43 -0700 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2019-01-08 22:11:50 -0800 |
commit | 63dd8220102ac747677585b85a1414cf99253bca (patch) | |
tree | 2be3992b86ac497ff03fb717fa89657c02961542 /debian/local | |
parent | 30c2e92614c8ba89c3a86797675661750e9840ad (diff) | |
download | pam-63dd8220102ac747677585b85a1414cf99253bca.tar.gz pam-63dd8220102ac747677585b85a1414cf99253bca.tar.bz2 pam-63dd8220102ac747677585b85a1414cf99253bca.zip |
Fix pam-auth-update handling of trailing blank lines in the fields of
profiles. LP: #1160288.
Diffstat (limited to 'debian/local')
-rwxr-xr-x | debian/local/pam-auth-update | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index 4af12339..17d3fc66 100755 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -686,7 +686,7 @@ sub parse_pam_profile } else { chomp; s/^\s+//; - $profile{$fieldname} .= "\n$_"; + $profile{$fieldname} .= "\n$_" if ($_); $profile{$fieldname} =~ s/^[\n\s]+//; } } |