Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.

From: Ed Schouten <ed_at_80386.nl>
Date: Thu, 14 Jan 2010 17:56:06 +0100
Hi all,

* Hajimu UMEMOTO <ume_at_FreeBSD.org> wrote:
> ume_at_yoshino:~% ll /var/run/utx.active /var/log/utx.l*
> -rw-r--r--  1 root  wheel  4294967493 Jan 14 22:49 /var/log/utx.lastlogin
> -rw-r--r--  1 root  wheel         201 Jan 14 22:49 /var/log/utx.log
> -rw-r--r--  1 root  wheel  4294967493 Jan 14 22:49 /var/run/utx.active

Just to make sure everyone else is informed: I fixed this bug earlier
today. It turned out I forgot to add a cast somewhere, which caused the
file descriptor to be moved by 2^32 - 197 bytes forward, instead of 197
backward. It only occurs on 32 bit platforms.

If you rebuild and reinstall world, the files should be automatically
truncated upon reboot, because the utmpx code notices this form of
file corruption.

-- 
 Ed Schouten <ed_at_80386.nl>
 WWW: http://80386.nl/

Received on Thu Jan 14 2010 - 15:56:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC