Subject: bin/20317: usr.bin/who/utmpentry.c bug.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@Krille.Update.UU.SE>
List: netbsd-bugs
Date: 02/12/2003 16:54:11
>Number:         20317
>Category:       bin
>Synopsis:       usr.bin/who/utmpentry.c bug.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 12 07:55:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Johnny Billquist
>Release:        NetBSD 1.6N
>Organization:
Update
>Environment:
System: NetBSD Krille.Update.UU.SE 1.6N NetBSD 1.6N (Krille) #51: Thu Feb 6 20:02:21 CET 2003 root@Krille.Update.UU.SE:/sys/arch/vax/compile/Krille vax
Architecture: vax
Machine: vax
>Description:
usr.src/who/utmpentry.c have a function called freeutentries(),
which makes it "forget" current entries in utmp and utmpx.
However, the module also keeps a time stamp to see if utmp and/or utmpx
have changed.
If the list is cleared, the timestamps should also be cleared, it seems
to me.

This have bearing on a problem in rwhod, which I'm filing as a separate
pr.
>How-To-Repeat:
Examine code.
>Fix:
Index: utmpentry.c
===================================================================
RCS file: /cvsroot/src/usr.bin/who/utmpentry.c,v
retrieving revision 1.3
diff -r1.3 utmpentry.c
160a161,162
> 	utmptime = 0;
> 	utmpxtime = 0;

>Release-Note:
>Audit-Trail:
>Unformatted: