From 0babf02dcc33b6c727811fb70399b4a9979edf32 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 22 Feb 2006 18:19:25 +0000 Subject: Relevant BUGIDs: 1427401 Purpose of commit: bugfix Commit summary: --------------- 2006-02-22 Thorsten Kukuk * configure.in: Fix check for incomplete libaudit installations (Patch from Ruediger Oertel ) * modules/pam_lastlog/pam_lastlog.c (last_login_write): Initialize correct last_login field [#1427401] --- modules/pam_lastlog/pam_lastlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_lastlog/pam_lastlog.c') diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index 24a13ef6..7e635335 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -274,7 +274,7 @@ last_login_write(pam_handle_t *pamh, int announce, int last_fd, terminal_line = get_tty(pamh); /* copy to last_login */ - last_login.ll_host[0] = '\0'; + last_login.ll_line[0] = '\0'; strncat(last_login.ll_line, terminal_line, sizeof(last_login.ll_line)-1); terminal_line = NULL; -- cgit v1.2.3