summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c
index c033582ad..8f5061cdc 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -164,7 +164,7 @@
164# include <libutil.h> 164# include <libutil.h>
165#endif 165#endif
166 166
167RCSID("$Id: loginrec.c,v 1.65 2005/02/08 10:52:48 dtucker Exp $"); 167RCSID("$Id: loginrec.c,v 1.66 2005/02/15 10:45:57 dtucker Exp $");
168 168
169/** 169/**
170 ** prototypes for helper functions in this file 170 ** prototypes for helper functions in this file
@@ -192,6 +192,8 @@ int lastlog_get_entry(struct logininfo *li);
192int wtmp_get_entry(struct logininfo *li); 192int wtmp_get_entry(struct logininfo *li);
193int wtmpx_get_entry(struct logininfo *li); 193int wtmpx_get_entry(struct logininfo *li);
194 194
195extern Buffer loginmsg;
196
195/* pick the shortest string */ 197/* pick the shortest string */
196#define MIN_SIZEOF(s1,s2) (sizeof(s1) < sizeof(s2) ? sizeof(s1) : sizeof(s2)) 198#define MIN_SIZEOF(s1,s2) (sizeof(s1) < sizeof(s2) ? sizeof(s1) : sizeof(s2))
197 199
@@ -441,7 +443,7 @@ login_write(struct logininfo *li)
441#endif 443#endif
442#ifdef CUSTOM_SYS_AUTH_RECORD_LOGIN 444#ifdef CUSTOM_SYS_AUTH_RECORD_LOGIN
443 if (li->type == LTYPE_LOGIN && 445 if (li->type == LTYPE_LOGIN &&
444 !sys_auth_record_login(li->username,li->hostname,li->line)) 446 !sys_auth_record_login(li->username,li->hostname,li->line, &loginmsg))
445 logit("Writing login record failed for %s", li->username); 447 logit("Writing login record failed for %s", li->username);
446#endif 448#endif
447#ifdef SSH_AUDIT_EVENTS 449#ifdef SSH_AUDIT_EVENTS