summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-11-12 18:45:49 -0800
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:29 -0800
commitc69aa3eba22b6e9aa1ad8c068700966e32e21739 (patch)
tree0e8b0ec2420c21ca964ff9f6bfeee8208650ad00 /debian
parentf3adbcb0a9685b0ea34a52bc34c2a82469a585c5 (diff)
trim leading whitespace from multiline fields when parsing PAM profiles
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/local/pam-auth-update1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 3dedd40e..760e9aa5 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -667,6 +667,7 @@ sub parse_pam_profile
}
} else {
chomp;
+ s/^\s+//;
$profile{$fieldname} .= "\n$_";
$profile{$fieldname} =~ s/^[\n\s]+//;
}