diff options
author | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 06:01:06 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 06:01:06 +0000 |
commit | cf6453779c9e8909a2e8eeb22aa2f54b2cf05f32 (patch) | |
tree | 4a54fc36ca9384892c20fb376ee0f0a5075fdc81 /usr.sbin/pppd/auth.c | |
parent | 389b84465208a6496b39e17a90a3741f155cc51c (diff) | |
download | src-cf6453779c9e8909a2e8eeb22aa2f54b2cf05f32.tar.gz src-cf6453779c9e8909a2e8eeb22aa2f54b2cf05f32.zip |
Fix a 64 bit time_t bogon that I missed from before. lastlog.ll_time is
not a time_t.
Notes
Notes:
svn path=/head/; revision=121557
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r-- | usr.sbin/pppd/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |