Fix multi-line pam prompt handling
authorMarc Deslauriers <marc.deslauriers@ubuntu.com>
Tue, 28 Jun 2011 11:32:24 +0000 (12:32 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 1 Aug 2011 14:00:07 +0000 (10:00 -0400)
commit4b4f6666ae66a554bfd7180ac99973a66db22a08
tree0605a138616bd552c23024dc60d3cfadcdfdf3c1
parentec0fc445d0cbf96b8748003021c603d0303b5ef3
Fix multi-line pam prompt handling

Some pam modules may attempt to display multi-line prompts to the
user. In these cases, PolicyKit was failing. This patch fixes the
issue by escaping the prompt before passing it and unescaping it
again.

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkitagent/polkitagenthelper-pam.c
src/polkitagent/polkitagentsession.c