From owner-freebsd-current Tue Nov 24 11:53:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29362 for freebsd-current-outgoing; Tue, 24 Nov 1998 11:53:57 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29354 for ; Tue, 24 Nov 1998 11:53:55 -0800 (PST) (envelope-from bright@hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.9.1) with ESMTP id OAA15837; Tue, 24 Nov 1998 14:57:03 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Tue, 24 Nov 1998 14:57:03 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: John Polstra cc: flo@ganymed.org, current@FreeBSD.ORG Subject: Re: strange /var/log/wtmp logging In-Reply-To: <199811241935.LAA00760@vashon.polstra.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 "); ... } 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