summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 1d9c031c4..b7558b9e9 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -77,6 +77,20 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
77 login_free_entry(li); 77 login_free_entry(li);
78} 78}
79 79
80#ifdef LOGIN_NEEDS_UTMPX
81void
82record_utmp_only(pid_t pid, const char *ttyname, const char *user,
83 const char *host, struct sockaddr * addr)
84{
85 struct logininfo *li;
86
87 li = login_alloc_entry(pid, user, host, ttyname);
88 login_set_addr(li, addr, sizeof(struct sockaddr));
89 login_utmp_only(li);
90 login_free_entry(li);
91}
92#endif
93
80/* Records that the user has logged out. */ 94/* Records that the user has logged out. */
81 95
82void 96void