In lastlog.c, there is tm = localtime (&lastlog.ll_time); it assumes ll_time is time_t. But in <bits/utmp.h>, there are struct lastlog { #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32 int32_t ll_time; #else __time_t ll_time; #endif char ll_line[UT_LINESIZE]; char ll_host[UT_HOSTSIZE]; };
Created attachment 95881 [details] A patch to fix lastlog
Patch looks reasonable from here.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2003-340.html