summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 06:01:06 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 06:01:06 +0000
commit39da8f45bd8bdbad93a8a3e59cb63a538b4eaa35 (patch)
tree4a54fc36ca9384892c20fb376ee0f0a5075fdc81 /usr.sbin/pppd
parent18ddddadd0b53c5975d80e5064c1228aabd325b8 (diff)
downloadFreeBSD-src-39da8f45bd8bdbad93a8a3e59cb63a538b4eaa35.zip
FreeBSD-src-39da8f45bd8bdbad93a8a3e59cb63a538b4eaa35.tar.gz
Fix a 64 bit time_t bogon that I missed from before. lastlog.ll_time is
not a time_t.
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/auth.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud