1 --- sysvinit-2.86/src/utmp.c.timeval 1999-06-09 07:11:33.000000000 -0400
2 +++ sysvinit-2.86/src/utmp.c 2006-08-09 19:46:26.000000000 -0400
6 struct utsname uname_buf;
11 * Try to open the wtmp file. Note that we even try
12 * this if we have updwtmp() so we can see if the
15 memset(&utmp, 0, sizeof(utmp));
16 #if defined(__GLIBC__)
17 - gettimeofday(&utmp.ut_tv, NULL);
18 + gettimeofday(&tv, NULL);
19 + utmp.ut_tv.tv_sec = tv.tv_sec;
20 + utmp.ut_tv.tv_usec = tv.tv_usec;
31 * Can't do much if UTMP_FILE is not present.
34 strncpy(utmp.ut_id, id, sizeof(utmp.ut_id));
35 #if defined(__GLIBC__)
36 - gettimeofday(&utmp.ut_tv, NULL);
37 + gettimeofday(&tv, NULL);
38 + utmp.ut_tv.tv_sec = tv.tv_sec;
39 + utmp.ut_tv.tv_usec = tv.tv_usec;