HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Ed Schouten
ed at 80386.nl
Thu Jan 14 16:56:07 UTC 2010
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100114/0c24f6e0/attachment.pgp
More information about the freebsd-current
mailing list