Subject: 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: tech-userlevel
Date: 08/04/1998 15:36:59
>Submitter-Id:	net
>Originator:	Zdenek Salvet
>Organization: Masaryk University, Brno, Czech Republic 
>Confidential:	no
>Synopsis:	telnetd does not skip ttyv* pseudo-ttys
>Severity:	non-critical
>Priority:	medium
>Category:	bin
>Class:		sw-bug
>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.