Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 1998 14:57:03 -0500 (EST)
From:      Alfred Perlstein <bright@hotjobs.com>
To:        John Polstra <jdp@polstra.com>
Cc:        flo@ganymed.org, current@FreeBSD.ORG
Subject:   Re: strange /var/log/wtmp logging
Message-ID:  <Pine.BSF.4.05.9811241450240.10312-100000@bright.fx.genx.net>
In-Reply-To: <199811241935.LAA00760@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Nov 1998, John Polstra wrote:

> > Recently I noticed that there are strange log entries in my wtmp file.
> 
> You probably have an old program predating the changes in the format
> wtmp file, which is writing old-style records into the file.  The
> usual culprit is xterm.  If you are using wu-ftpd from a port, it's
> another possibility.  Likewise for sshd, I believe.

urk, why hasn't someone made a UTMP_VERSION #define and
int get_utmp_version(), or whatnot that would
get bumped when utmp/wtmp change?

if(UTMP_VERSION == get_utmp_version()){
	login(.....);
} else {
	...
	syslog( "warning utmp has changed from under me, "
           "please recompile <progname>");
	...
}

This error seems to be common enough to warrent something of the sort...

Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com
-- There are operating systems, and then there's FreeBSD.
-- http://www.freebsd.org/                        3.0-current



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811241450240.10312-100000>