Subject: bin/5904: telnetd does not skip ttyv*
To: None <gnats-bugs@gnats.netbsd.org, salvet@ics.muni.cz, tech-userlevel@netbsd.org>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: netbsd-bugs
Date: 08/04/1998 15:36:59
>Number:         5904
>Category:       bin
>Synopsis:       telnetd does not skip ttyv* pseudo-ttys
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug  4 06:50:01 1998
>Last-Modified:
>Originator:     Zdenek Salvet
>Organization:
Masaryk University, Brno, Czech Republic 
>Release:        1.3 and current of Aug 4 1998
>Environment:
System: NetBSD horn.ics.muni.cz 1.3E NetBSD 1.3E (HORN_13) #0: Mon Mar 16 11:06:02 MET 1998 salvet@minea.ics.muni.cz:/home/salvet/src/sys/arch/i386/compile/HORN_13 i386


>Description:
	telnetd tries to open /dev/ptyv0, if it does not exist
        (on i386 with pcvt), it skips other possible ptys

>How-To-Repeat:
        Let 97 users log in simultaneously :-)

>Fix:
        Change src/libexec/telnetd/sys_term.c to use openpty()
        or exclude "v" from pty names. 

>Audit-Trail:
>Unformatted: