Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 1997 23:40:01 -0800 (PST)
From:      Zach Heilig <zach@blizzard.gaffaneys.com>
To:        freebsd-bugs
Subject:   Re: bin/3173: utmp and wtmp programs out of sync (update).
Message-ID:  <199704050740.XAA25868@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/3173; it has been noted by GNATS.

From: Zach Heilig <zach@blizzard.gaffaneys.com>
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.
 



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