From bd8e8eaf320d6a9a30361f0523d3a032e56e6143 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 14 Mar 2011 14:34:45 -0300 Subject: [PATCH] Don't show diagnostic messages intended for the administrator to the end user See https://bugzilla.gnome.org/show_bug.cgi?id=644737#c6 for discussion. Signed-off-by: David Zeuthen --- src/polkitagent/polkitagenthelper-pam.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/polkitagent/polkitagenthelper-pam.c b/src/polkitagent/polkitagenthelper-pam.c index 61fed4d..f777829 100644 --- a/src/polkitagent/polkitagenthelper-pam.c +++ b/src/polkitagent/polkitagenthelper-pam.c @@ -151,7 +151,6 @@ main (int argc, char *argv[]) const char *err; err = pam_strerror (pam_h, rc); fprintf (stderr, "polkit-agent-helper-1: pam_authenticate failed: %s\n", err); - send_to_helper ("PAM_ERROR_MSG ", err); goto error; } @@ -162,7 +161,6 @@ main (int argc, char *argv[]) const char *err; err = pam_strerror (pam_h, rc); fprintf (stderr, "polkit-agent-helper-1: pam_acct_mgmt failed: %s\n", err); - send_to_helper ("PAM_ERROR_MSG ", err); goto error; } @@ -173,7 +171,6 @@ main (int argc, char *argv[]) const char *err; err = pam_strerror (pam_h, rc); fprintf (stderr, "polkit-agent-helper-1: pam_get_item failed: %s\n", err); - send_to_helper ("PAM_ERROR_MSG ", err); goto error; } @@ -181,7 +178,6 @@ main (int argc, char *argv[]) { fprintf (stderr, "polkit-agent-helper-1: Tried to auth user '%s' but we got auth for user '%s' instead", user_to_auth, (const char *) authed_user); - send_to_helper ("PAM_ERROR_MSG ", "Authenticated the wrong user"); goto error; } -- 2.7.4