summaryrefslogtreecommitdiff
path: root/usr.bin/telnet
AgeCommit message (Collapse)Author
2015-11-29telnet: check if fd is a tty before calling tcsetattr(fd, TCSADRAIN)Sebastien Marie
ok deraadt@
2015-11-24Don't support repeated connections - avoids pledge problemsBob Beck
ok deraadt@, "god please commit before I see any more" tedu@
2015-11-20Replace hardcoded "2" with SHUT_RDWR; from Ricardo MestreJeremie Courreges-Anglas
2015-11-19how did the pledge "dns" get forgotten?!?! wow..Theo de Raadt
2015-11-13Ev SHELL no longer relevant;Jason McIntyre
2015-11-13remove -d from SYNOPSIS;Jason McIntyre
2015-11-13move pledge(2) after setrtable(2), like in nc(1);Ingo Schwarze
OK deraadt@
2015-11-13pledge "stdio rpath wpath getpw inet tty" at startup. After openingTheo de Raadt
the socket and entering the main loop, pledge "stdio tty". For my next trick, I will be adding chacha20-poly1305 support.
2015-11-13Use setrtable() for the entire process, rather than doing it for theTheo de Raadt
socket later. Same idea as in nc(1).
2015-11-13Remove support for the debug command; noone needs setsockopt SO_DEBUGTheo de Raadt
2015-11-13Delete tracefile command. Tracefiles can now only be specified atTheo de Raadt
program startup. Who uses that? Noone... ok millert
2015-11-13remove support for !shellTheo de Raadt
ok millert
2015-11-13remove skey supportTheo de Raadt
ok millert
2015-10-26Set low-delay traffic class for IPv6 connections as wellJeremie Courreges-Anglas
While here, there is no option to pass a different tos, and no other use of the "tos" variable out of tn(), so move the "tos" variable in tn() and assign it the right value from the start. ok millert@
2015-10-25Kill unused local var, and reorder while here.Jeremie Courreges-Anglas
2015-10-25We don't care about lack of source route support for IPv6.Jeremie Courreges-Anglas
ok sthen@ guenther@ mpi@ millert@
2015-10-25Kill IP Source Route support, unusable since 1998.Jeremie Courreges-Anglas
ok sthen@ guenther@ mpi@ millert@
2015-03-29Revert r1.29 "Don't clear ICRNL when editing mode is off, so that characterStuart Henderson
local echo mode don't echo ^M locally" as this causes problems sending CR to some Cisco equipment reported by Ryan Freeman and Fred Crowson. kettenis@ agrees with reverting to fix the regression; we can consider a better diff afterwards but clearly this is a sensitive area.
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-02-12Don't clear ICRNL when editing mode is off, so that character local echoPhilip Guenther
mode don't echo ^M locally analysis and patch from Stanislav Brabec (sbrabec (at) suse.cz)
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-09-09Eliminate a pile of casts that were superfluous or wrong, or that werePhilip Guenther
the result of bad type choices, particularly (unsigned char *) vs (const char *). Also, use reallocarray().
2014-08-10Add Xr to skey and sttyPhilip Guenther
2014-07-22use ansi style function declarationsJonathan Gray
with suggestions from and ok guenther@
2014-07-20Eliminate silly call() routine that fakes up internal calls as ifPhilip Guenther
the user typed in undocumented arguments by splitting two functions and doing normal (shock!) C calls. Move extern declarations to externs.h Eliminate another function cast
2014-07-20Fix array overflow in command line handlingPhilip Guenther
2014-07-20Mark a slurry of functions as staticPhilip Guenther
Eliminate two more trivial wrappers
2014-07-20use NULL instead of 0 when dealing with pointersJonathan Gray
ok guenther@
2014-07-20Kill lint comments; mark ExitString() as __deadPhilip Guenther
2014-07-20Switch from memmove() to memcpy() where appropriate; simplify addressPhilip Guenther
parsing logic; eliminate an inefficient use of MIN() macro
2014-07-20VSUSP and SIGTSTP are required by POSIXPhilip Guenther
2014-07-20Delete an insane chunk of code for handling broken poll() emulation.Philip Guenther
Pass poll() INFTIM instead of -1
2014-07-20Add prototypes to some function callbacks and fix the type errors thatPhilip Guenther
this reveals. Make NetTrace static to utilities.c
2014-07-20More encryption tentacles: intr_happened and intr_waiting vanishPhilip Guenther
Push more includes into .c files Make ring.c only need ring.h
2014-07-20Eliminate trivial wrappers TerminalWrite() and TerminalRead()Philip Guenther
Replace TerminalFlushOutput() with tcflush(). Replace TerminalAutoFlush() with check of tty's NOFLSH flag as documented in the manpage. Push <netdb.h> into .c files
2014-07-20Don't depend on <sys/param.h> for MAXPATHLENPhilip Guenther
2014-07-20Correctly cast to unsigned char for ctype functions/macrosPhilip Guenther
Push <ctype.h> and <unistd.h> into the .c files
2014-07-20ring_init() can't failPhilip Guenther
KNF ring.h
2014-07-20-8 is the defaultPhilip Guenther
2014-07-20Don't need -I${.CURDIR}Philip Guenther
2014-07-20Simplify #includes, start pushing them into the .c files, eliminatePhilip Guenther
extern declarations from .c files that duplicate those in .h files, start marking functions with __dead
2014-07-20tweak -W optionsPhilip Guenther
2014-07-20Ooops, verbose_encrypt option is gone too.Philip Guenther
Also stop assuming that csh is the only shell with job control
2014-07-20The manpage claims the -a option uses getlogin(2), so do so. Also,Philip Guenther
ignore its value if it returns a user that doesn't exit
2014-07-20The only authentication info now is the login namePhilip Guenther
2014-07-20remove a variable called wantencryption.Theo de Raadt
hahahahahahahahahha. OK, I'm done.
2014-07-19Flense the telnet code base of unwanted ifdefs: authentication/encryptionPhilip Guenther
tn3270, sgtty, pre-POSIX and other ancient system support, etc. Brings up to date the manpage with what we support. ok matthieu@ beck@ jmc@ millert@ deraadt@ okan@
2014-05-09my previous attempt to fix the renaming of the inet(3) pages was wrong;Jason McIntyre
this fixes those by referencing the correct page, and cleans up the netintro/ inet entries; all this on the advice (and ok) of guenther!
2014-05-08inet(3) -> inet_net(3);Jason McIntyre