Commit graph

2 commits

Author SHA1 Message Date
ben
8af6a397e4 On sparc64 when I used the "w" command, the screen logins had absurdly
large login and idle times.  This was due to a bug in utmp.c:

in os.h
-------
#  define utmp          utmpx
#  define ut_time       ut_xtime

in utmp.c::makeuser()
---------------------
struct utmp *u;
  (void)time((time_t *)&u->ut_time);

The above works fine on i386 where ut_xtime and time_t are the same size,
but on sparc64 ut_xtime is 8 bytes rather than 4.

This fix was tested on i386 and sparc64.
2003-12-01 15:18:27 +00:00
kim
fe233f7a84 Handle utmpx on NetBSD-current. 2002-09-15 06:51:35 +00:00