Date: Mon, 26 Aug 2002 16:47:26 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 16617 for review Message-ID: <200208262347.g7QNlQKB049865@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16617 Change 16617 by peter@peter_daintree on 2002/08/26 16:47:07 try and stop abuse of ut_time Affected files ... .. //depot/projects/ia64/usr.sbin/pppd/auth.c#3 edit Differences ... ==== //depot/projects/ia64/usr.sbin/pppd/auth.c#3 (text+ko) ==== @@ -49,6 +49,7 @@ #include <sys/socket.h> #include <utmp.h> #include <fcntl.h> +#include <timeconv.h> #if defined(_PATH_LASTLOG) && defined(_linux_) #include <lastlog.h> #endif @@ -995,7 +996,7 @@ #endif memset((void *)&utmp, 0, sizeof(utmp)); - (void)time(&utmp.ut_time); + utmp.ut_time = _time_to_time32(time(NULL)); (void)strncpy(utmp.ut_name, user, sizeof(utmp.ut_name)); (void)strncpy(utmp.ut_host, ":PPP", sizeof(utmp.ut_host)); (void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208262347.g7QNlQKB049865>