telnetd/telnetd
ed 7aa7324a8f Convert telnetd(8) to use posix_openpt(2).
Some time ago I got some reports MPSAFE TTY broke telnetd(8). Even
though it turned out to be a different problem within the TTY code, I
spotted a small issue with telnetd(8). Instead of allocating PTY's using
openpty(3) or posix_openpt(2), it used its own PTY allocation routine.
This means that telnetd(8) still uses /dev/ptyXX-style devices.

I've also increased the size of line[]. Even though 16 should be enough,
we already use 13 bytes ("/dev/pts/999", including '\0'). 32 bytes gives
us a little more freedom.

Also enable -DSTREAMSPTY. Otherwise telnetd(8) strips the PTY's pathname
to the latest slash instead of just removing "/dev/" (e.g. /dev/pts/0 ->
0, instead of pts/0).

Reviewed by:	rink


git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@184935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
2008-11-13 19:05:27 +00:00
..
authenc.c Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3. 2003-05-04 02:54:49 +00:00
defs.h Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code. 2001-08-29 14:16:17 +00:00
ext.h Convert telnetd(8) to use posix_openpt(2). 2008-11-13 19:05:27 +00:00
global.c Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3. 2003-05-04 02:54:49 +00:00
pathnames.h Code merge and diff reduce with "base" telnet. This is the "later" 2001-08-20 12:28:40 +00:00
slc.c Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3. 2003-05-04 02:54:49 +00:00
state.c Don't attempt authentication at all if it has been disabled via '-a off'. 2008-07-28 18:58:16 +00:00
sys_term.c Convert telnetd(8) to use posix_openpt(2). 2008-11-13 19:05:27 +00:00
telnetd.8 List authentication types supported with "-X" taken from the libtelnet 2008-08-29 00:04:37 +00:00
telnetd.c Don't attempt authentication at all if it has been disabled via '-a off'. 2008-07-28 18:58:16 +00:00
telnetd.h Very large style makeover. 2001-11-30 21:06:38 +00:00
termstat.c Add missing () to function invocation. 2004-07-28 05:37:18 +00:00
utility.c Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3. 2003-05-04 02:54:49 +00:00