diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-03-24 16:43:28 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-03-24 16:43:28 +0000 |
commit | 1d7ec735995fd8515a21992d85e70420e0091e65 (patch) | |
tree | 9d53076afb996fc7427da2473942cf43546ce079 /usr.bin | |
parent | b42fa972b98ada02ebc6b30cdbf31dd9ee7aa149 (diff) |
unused; remove dup comments. ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshlogin.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.bin/ssh/sshlogin.c b/usr.bin/ssh/sshlogin.c index 645ebb30d6d..a8a76c6156d 100644 --- a/usr.bin/ssh/sshlogin.c +++ b/usr.bin/ssh/sshlogin.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshlogin.c,v 1.1 2001/03/04 01:46:30 djm Exp $"); +RCSID("$OpenBSD: sshlogin.c,v 1.2 2001/03/24 16:43:27 stevesk Exp $"); #include <util.h> #include <utmp.h> @@ -52,11 +52,6 @@ RCSID("$OpenBSD: sshlogin.c,v 1.1 2001/03/04 01:46:30 djm Exp $"); * The host the user logged in from will be returned in buf. */ -/* - * Returns the time when the user last logged in (or 0 if no previous login - * is found). The name of the host used last time is returned in buf. - */ - u_long get_last_login_time(uid_t uid, const char *logname, char *buf, u_int bufsize) @@ -97,7 +92,6 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, struct lastlog ll; char *lastlog; struct utmp u; - const char *utmp, *wtmp; /* Construct an utmp/wtmp entry. */ memset(&u, 0, sizeof(u)); @@ -106,10 +100,6 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, strncpy(u.ut_name, user, sizeof(u.ut_name)); strncpy(u.ut_host, host, sizeof(u.ut_host)); - /* Figure out the file names. */ - utmp = _PATH_UTMP; - wtmp = _PATH_WTMP; - login(&u); lastlog = _PATH_LASTLOG; |