summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-03-14 14:34:45 -0300
committerDavid Zeuthen <davidz@redhat.com>2011-03-14 14:34:45 -0300
commitbd8e8eaf320d6a9a30361f0523d3a032e56e6143 (patch)
treeec69540a704b50f69dde94ed6eaf2245a587a808
parentc29a6fd701df08e10e384cce65356af9a5a559f3 (diff)
downloadpolkit-bd8e8eaf320d6a9a30361f0523d3a032e56e6143.tar.gz
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 <davidz@redhat.com>
-rw-r--r--src/polkitagent/polkitagenthelper-pam.c4
1 files changed, 0 insertions, 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;
}