1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00
freebsd/libexec
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
..
atrun
bootpd
comsat
fingerd Mark functions as __dead2 in order to help the LLVM static checker 2008-08-04 01:25:48 +00:00
ftpd
getty
lukemftpd
mail.local
makekey
mknetid
pppoed
rbootd
revnetgroup
rlogind
rpc.rquotad Whitespace and style fixes, build at WARNS level 6. 2008-11-04 14:17:49 +00:00
rpc.rstatd Use sysctl to fetch stats from the kernel instead of reading variables 2008-06-10 18:47:43 +00:00
rpc.rusersd
rpc.rwalld
rpc.sprayd
rshd
rtld-aout
rtld-elf This code has no copyright. It is fairly obvious to me that we're a 2008-10-13 20:24:03 +00:00
save-entropy
smrsh
talkd Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
tcpd
telnetd Convert telnetd(8) to use posix_openpt(2). 2008-11-13 19:05:27 +00:00
tftp-proxy
tftpd Add "with" to make the line go smoother. 2007-11-23 01:52:44 +00:00
ypxfr
Makefile add new build knobs and jigger some existing controls to improve 2008-09-21 22:02:26 +00:00
Makefile.inc