From cf6453779c9e8909a2e8eeb22aa2f54b2cf05f32 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 26 Oct 2003 06:01:06 +0000 Subject: Fix a 64 bit time_t bogon that I missed from before. lastlog.ll_time is not a time_t. --- usr.sbin/pppd/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pppd/auth.c') diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index 6d2d737a5a6f..c98246172a7b 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -986,7 +986,7 @@ plogin(user, passwd, msg, msglen) if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) { (void)lseek(fd, (off_t)(pw->pw_uid * sizeof(ll)), SEEK_SET); memset((void *)&ll, 0, sizeof(ll)); - (void)time(&ll.ll_time); + ll.ll_time = _time_to_time32(time(0)); (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line)); (void)write(fd, (char *)&ll, sizeof(ll)); (void)close(fd); -- cgit v1.2.3