From owner-freebsd-bugs Fri Apr 4 23:40:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA25874 for bugs-outgoing; Fri, 4 Apr 1997 23:40:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA25868; Fri, 4 Apr 1997 23:40:01 -0800 (PST) Date: Fri, 4 Apr 1997 23:40:01 -0800 (PST) Message-Id: <199704050740.XAA25868@freefall.freebsd.org> To: freebsd-bugs Cc: From: Zach Heilig Subject: Re: bin/3173: utmp and wtmp programs out of sync (update). Reply-To: Zach Heilig Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/3173; it has been noted by GNATS. From: Zach Heilig To: gnats@freefall.freebsd.org Cc: Subject: Re: bin/3173: utmp and wtmp programs out of sync (update). Date: Sat, 5 Apr 1997 01:29:59 -0600 is anyone listening? ;-) login and telnetd both think that sizeof (utmp) == 44 (I'm not sure why yet, they appearantly use libutil, which appears to think that sizeof (utmp) == 36... this info from observing the effect of these two programs on utmp and wtmp, and looking at their source) init, who, finger, w, uptime, and xterm [and most other things] get it right, and think that sizeof (utmp) == 36. For example, my /var/log/wtmp is size 256... it has 1 36 byte record, and 5 44 byte records. 1 reboot record (the 36 byte record), 1 login record for ttyv0, one login and logout record for ttyp3 (from telnetd), and one login and logout record for ttyp2 (also from telnetd). xterm doesn't seem to write to wtmp. My /var/run/utmp has two entries for ttyp2, one at 24*36 (from xterm), and one at 24*44 (from telnetd). I already tried: rm -rf /usr/obj rm -rf /usr/src rm -rf /usr/sup and getting a fresh copy of /usr/src, and make'ing world, but no difference. This is 2.2-STABLE, btw... -- Zach Heilig (zach@blizzard.gaffaneys.com) | ALL unsolicited commercial email | is unwelcome. I avoid dealing | with companies that email ads.