Subject: standards/20492: window(1) needs to do proper pty(4) accounting
To: None <gnats-bugs@gnats.netbsd.org>
From: Stephen Jones <smj@sdf.lonestar.org>
List: netbsd-bugs
Date: 02/25/2003 18:05:37
>Number:         20492
>Category:       standards
>Synopsis:       window(1) does not do proper pty(4) allocation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    standards-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 25 10:06:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Jones
>Release:        NetBSD 1.6.1
>Organization:
SDF Public Access UNIX System
>Environment:
	
System: NetBSD otaku 1.6.1_RC1 NetBSD 1.6.1_RC1 (sdf) #0: Mon Feb 17 17:47:34 CST 2003 root@cutter-john.cirr.com:/home/cutter-john/smj/src/sys/arch/alpha/compile/sdf alpha


>Description:

The window(1) command allocates pseudo terminals for a user session without
properly accounting for them. 

>How-To-Repeat:

run window

>Fix:

window should create entries in utmp and wtmp, as those are the standard
locations for pty usage accounting.  When the user releases a pty, the
entry from utmp should be cleared and the entry in wtmp updated.
>Release-Note:
>Audit-Trail:
>Unformatted: