summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-02-24 17:56:46 -0800
committerTim Rice <tim@multitalents.net>2002-02-24 17:56:46 -0800
commite06ae4a4bcdb637911a1be6657e2dfa592fd49c8 (patch)
tree9fd84793e5f04aa2734d98855d216a6bc10f4c8c /sshlogin.c
parent839ac4f8aaf044e87539d65969163e11f4114461 (diff)
[loginrec.c session.c sshlogin.c sshlogin.h] Bug 84
patch by wknox@mitre.org (William Knox). [sshlogin.h] declare record_utmp_only for session.c
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 2fb96bb6..78c51abd 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -94,11 +94,11 @@ record_utmp_only(pid_t pid, const char *ttyname, const char *user,
/* Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininfo *li;
- li = login_alloc_entry(pid, NULL, NULL, ttyname);
+ li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
}