From 39da8f45bd8bdbad93a8a3e59cb63a538b4eaa35 Mon Sep 17 00:00:00 2001 From: peter 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') diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index 6d2d737..c982461 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.1