summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bigonville <l.bigonville@edpnet.be>2011-03-09 19:42:17 +0100
committerStef Walter <stefw@collabora.co.uk>2011-03-09 19:42:17 +0100
commitae1c102543acc4b6c607cb1462107b8a4d4409d3 (patch)
tree098153b57606c16fe46dcb05a3d1a7a582051aea
parent1099a753b6bb502316ad9561c9999474639a3e10 (diff)
downloadgnome-keyring-ae1c102543acc4b6c607cb1462107b8a4d4409d3.tar.gz
[pam] Do not leak login name when logging error
Don't include unrecognized user names in log messages, as they could be mistyped passwords.
-rw-r--r--pam/gkr-pam-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam/gkr-pam-module.c b/pam/gkr-pam-module.c
index d6fc17d6..e63c9179 100644
--- a/pam/gkr-pam-module.c
+++ b/pam/gkr-pam-module.c
@@ -815,7 +815,7 @@ pam_sm_authenticate (pam_handle_t *ph, int unused, int argc, const char **argv)
pwd = getpwnam (user);
if (!pwd) {
- syslog (GKR_LOG_ERR, "gkr-pam: error looking up user information for: %s", user);
+ syslog (GKR_LOG_ERR, "gkr-pam: error looking up user information");
return PAM_SERVICE_ERR;
}