Ed Schouten 225c0f4b44 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
2008-11-13 19:05:27 +00:00
..
2007-12-11 19:16:51 +00:00
2008-05-29 02:43:05 +00:00
2008-03-20 02:56:24 +00:00
2007-11-18 00:25:18 +00:00
2007-10-04 04:38:23 +00:00
2007-11-26 08:58:07 +00:00
2007-11-07 04:44:11 +00:00
2008-09-07 22:15:41 +00:00
2007-06-06 11:14:30 +00:00
2008-06-21 15:48:16 +00:00