Don't show diagnostic messages intended for the administrator to the end user
authorDavid Zeuthen <davidz@redhat.com>
Mon, 14 Mar 2011 17:34:45 +0000 (14:34 -0300)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 14 Mar 2011 17:34:45 +0000 (14:34 -0300)
See https://bugzilla.gnome.org/show_bug.cgi?id=644737#c6 for discussion.

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

index 61fed4d..f777829 100644 (file)
@@ -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;
     }