Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 17:56:06 +0100
From:      Ed Schouten <ed@80386.nl>
To:        Hajimu UMEMOTO <ume@FreeBSD.org>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Message-ID:  <20100114165606.GH64905@hoeg.nl>
In-Reply-To: <yge4omo7plu.wl%ume@mahoroba.org>
References:  <20100113194254.GR64905@hoeg.nl> <yge4omo7plu.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--79VAcntGpWtJGd4r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,

* Hajimu UMEMOTO <ume@FreeBSD.org> wrote:
> ume@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.

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--79VAcntGpWtJGd4r
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAktPTKYACgkQ52SDGA2eCwXpeACfcLl+zQpy+44O+i81PdxqRZwp
Xt4AniM2n7r1AIGnjE5AIRSzX7+ovp8x
=nWUo
-----END PGP SIGNATURE-----

--79VAcntGpWtJGd4r--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100114165606.GH64905>