diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-20 07:42:21 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-20 07:42:21 +1000 |
commit | 166fca8894807de71b741a779330bd23edfec013 (patch) | |
tree | 387371567ce5b3c89c52e18f3a22348f1456af8d /login.c | |
parent | 3ef692aa05a4b0d94a114be0826d32d0c8f67f1b (diff) | |
download | openssh-git-166fca8894807de71b741a779330bd23edfec013.tar.gz |
- Sync with OpenBSD CVS:
[clientloop.c login.c serverloop.c ssh-agent.c ssh.h sshconnect.c sshd.c]
- pid_t
[session.c]
- remove bogus chan_read_failed. this could cause data
corruption (missing data) at end of a SSH2 session.
Diffstat (limited to 'login.c')
-rw-r--r-- | login.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,7 +18,7 @@ */ #include "includes.h" -RCSID("$Id: login.c,v 1.23 2000/04/16 01:18:43 damien Exp $"); +RCSID("$Id: login.c,v 1.24 2000/04/19 21:42:22 damien Exp $"); #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) # include <utmpx.h> @@ -136,7 +136,7 @@ get_last_login_time(uid_t uid, const char *logname, */ void -record_login(int pid, const char *ttyname, const char *user, uid_t uid, +record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, const char *host, struct sockaddr * addr) { #if defined(_PATH_LASTLOG) && !defined(DISABLE_LASTLOG) @@ -274,7 +274,7 @@ record_login(int pid, const char *ttyname, const char *user, uid_t uid, /* Records that the user has logged out. */ void -record_logout(int pid, const char *ttyname) +record_logout(pid_t pid, const char *ttyname) { #ifdef HAVE_LIBUTIL_LOGIN const char *line = ttyname + 5; /* /dev/ttyq8 -> ttyq8 */ |