summaryrefslogtreecommitdiff
path: root/modules/pam_lastlog/pam_lastlog.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2006-06-16 06:58:26 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2006-06-16 06:58:26 +0000
commit5130ba9825e03e8ca20d955e1ffa20d660c4556b (patch)
tree12aa34377c1ae5fea4e21ec89125493128b3598a /modules/pam_lastlog/pam_lastlog.c
parent60808ab5d10be27c5785e671f56afefa402bed4c (diff)
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2006-06-16 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_lastlog/pam_lastlog.c (last_login_read): Don't truncate UID for syslog output.
Diffstat (limited to 'modules/pam_lastlog/pam_lastlog.c')
-rw-r--r--modules/pam_lastlog/pam_lastlog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c
index 05d0766c..f470166f 100644
--- a/modules/pam_lastlog/pam_lastlog.c
+++ b/modules/pam_lastlog/pam_lastlog.c
@@ -167,7 +167,9 @@ last_login_read(pam_handle_t *pamh, int announce, int last_fd, uid_t uid)
if (!last_login.ll_time) {
if (announce & LASTLOG_DEBUG) {
- pam_syslog(pamh, LOG_DEBUG, "first login for user with uid %d", uid);
+ pam_syslog(pamh, LOG_DEBUG,
+ "first login for user with uid %lu",
+ (unsigned long int)uid);
}
}