Age | Commit message (Collapse) | Author |
|
|
|
amendments to his diff are noted on tech
|
|
getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument. We can
handle this case with the "default" failure case with no loss of
legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
|
|
Change several instances, most of them to the usual -width Ds.
|
|
rediscovered that telnet has more more signal race conditions and trashing
of global state than all the rest of the openbsd source tree (where signal
races have either been fixed or marked with "XXX signal race". I don't
feel like being a hero here today, so I'm fixing a whitespace error in an
unrelated file.
|
|
an overflow, he left spaces at the end of the line. we have been incredibly
sloppy and not notice his oversight for 21 years.
bonus Y2K joke included.
|
|
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
ok millert
|
|
|
|
doing string pointer arithmetic. Fixes a clang warning.
OK otto@ tom@
|
|
SIGINFO, and Bxxxx values that equal xxxx.
ok tom millert
|
|
OK deraadt@, tedu@
|
|
telnet would perform a gethostbyname on close/quit commands
when the machine hostname is not a fully qualified domain.
This behavior added on 12-March-98 breaks the current pledge
that "dns" operations are not needed after establishing
a connection leading to a coredump from telnet when
quiting or closing an existing connection.
OK chris@
|
|
Feedback millert@ kettenis@
|
|
|
|
the client to send the next terminal-type (RFC-1091), the client tries to read
terminfo files and is killed by pledge. Noticed when connecting to 4.3 BSD.
ok semarie@ tb@
|
|
|
|
ok deraadt, mmcc, tedu
|
|
ok deraadt@
|
|
ok deraadt@, "god please commit before I see any more" tedu@
|
|
|
|
|
|
|
|
|
|
OK deraadt@
|
|
the socket and entering the main loop, pledge "stdio tty".
For my next trick, I will be adding chacha20-poly1305 support.
|
|
socket later. Same idea as in nc(1).
|
|
|
|
program startup. Who uses that? Noone...
ok millert
|
|
ok millert
|
|
ok millert
|
|
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@
|
|
|
|
ok sthen@ guenther@ mpi@ millert@
|
|
ok sthen@ guenther@ mpi@ millert@
|
|
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.
|
|
"and" and "or" to join sentence clauses, and you can use commas, but both hinders
reading;
|
|
mode don't echo ^M locally
analysis and patch from Stanislav Brabec (sbrabec (at) suse.cz)
|
|
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)
|
|
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@
|
|
the result of bad type choices, particularly (unsigned char *) vs
(const char *). Also, use reallocarray().
|
|
|
|
with suggestions from and ok 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
|
|
|
|
Eliminate two more trivial wrappers
|
|
ok guenther@
|
|
|
|
parsing logic; eliminate an inefficient use of MIN() macro
|
|
|