summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-02-15 21:45:57 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-02-15 21:45:57 +1100
commit691d5235ca9485877e8345269b1be4b2cf1be322 (patch)
tree7adbbdbb837a6d3d4953a6ea339ad9d9e6d289ce /loginrec.c
parentf04c3616756831fe987fe3e474c8c234c298e4cb (diff)
- (dtucker) [README.platform auth.c configure.ac loginrec.c
openbsd-compat/port-aix.c openbsd-compat/port-aix.h] Bug #835: enable IPv6 on AIX where possible (see README.platform for details) and work around a misfeature of AIX's getnameinfo. ok djm@
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