summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2016-08-14Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.Philip Guenther
Fix a type mismatch in ftp's "page" command and could make transfers restart at the wrong position. ok and a ull->ll tweak from natano@, ok tedu@
2016-08-14shorten genpkey; ok guentherJason McIntyre
2016-08-13shorten gendsa;Jason McIntyre
2016-08-13%lld -> %llu for u_int64_t struct fields.Kenneth R Westerback
2016-08-13remove ssh1 server code; ok djm@Markus Friedl
2016-08-13As the relevant struct's (e.g. tcpstat) use [u_]int64_t types, theKenneth R Westerback
proper printf() format is %ll[ud], not the antediluvian %q[ud]. Reminded by guenther@'s proposed retirement of quad types. ok tedu@
2016-08-13Let libtls load the CA, certificate and key files for nc(1), now that itJoel Sing
does this at the time the tls_config_set_*_file() function is called. ok bluhm@
2016-08-13Split out the SSL options handling into a separate function, which makesJoel Sing
for more readable code and reduces line wrapping. Also improve error messages by adding tls_config_error() to errx() where appropriate. ok jca@
2016-08-13Even after switching from a pending head to the body, we have toIngo Schwarze
continue scanning upwards, because the enclosing block might already be pending as well, e.g. .Bl .Bl .It Bo .El .It. Tree corruption leading to a later NULL deref found by tb@ with afl(1).
2016-08-12Simplify getprec() by using strchr(3) and strspn(3).Theo Buehler
Part of NetBSD's jot r1.20 by dsl. ok jca
2016-08-12Rewrite the paragraphs that describe how the last four arguments areTheo Buehler
handled to make them easier to read and understand. with help from jmc
2016-08-12usage() is __deadTheo Buehler
2016-08-12The last four argumens of jot (reps, begin, end, step) can all beTheo Buehler
specified or omitted, yielding 16 possible combinations, plus a few special cases. Instead of hardcoded values, use names to make the bit patterns that indicate which values were specified human readable. Decide once and for all what to do in a single switch statement. Don't enter said switch when random output is requested since that simply makes no sense at all. While there, make the error messages a bit more meaningful and fix a bogus value assigned to begin for jot -r x - y z that has been there since -r1.1. All regression tests now pass. Inspired by David Laight (dsl)'s r1.21 of NetBSD's jot. "move fast and break stuff" tedu agreement from deraadt
2016-08-12Use 2001:db8::/32, the official IPv6 subnet for configuration examples.Jeremie Courreges-Anglas
This makes the IPv6 example consistent with IPv4, and removes a dubious mention of a 6bone subnet. ok sthen@ millert@
2016-08-12trim errstr, and zap gendh (deprecated) entirely;Jason McIntyre
2016-08-12shorten openssl enc, with help from jsing;Jason McIntyre
ok jsing beck
2016-08-11oops, fix stupid typo in previousIngo Schwarze
2016-08-11If a .Bd display is on the one hand doomed to be deleted becauseIngo Schwarze
it has no type, but is on the other hand breaking another block, delete its end marker as well, or the end marker may remain behind as an orphan, triggering an assertion in the terminal formatter. Problem found by tb@ with afl(1).
2016-08-11Update moduli file.Darren Tucker
2016-08-10Don't deref NULL if the only child of the first .Sh is an emptyIngo Schwarze
in-line macro, and don't printf("%s", NULL) if the first child of the first .Sh is a macro; again found by tb@ with afl(1). (No, you should never use macros in any .Sh at all, please.)
2016-08-10move armish and hppa64 down in the dropdown box; reminded by jmc@Ingo Schwarze
2016-08-10shorten ecparam;Jason McIntyre
2016-08-10Don't printf("%s", NULL) if .It has a macro as an argumentIngo Schwarze
in a list of a type where items don't takes arguments. Issue found by tb@ with afl(1).
2016-08-10When validating a .Bl list that defaults to -item for want of a type,Ingo Schwarze
don't let a subsequent -width access mdoc_argnames[] out of bounds. Found by tb@ with afl(1).
2016-08-10Fix assertion failures caused by whitespace inside \o'' (overstrike)Ingo Schwarze
sequences that jsg@ found with afl(1): * Avoid writing \t\b in term.c. * Handle trailing \b in term_ps.c.
2016-08-09trim the ec text;Jason McIntyre
2016-08-09fix printf("%s", NULL);Ingo Schwarze
found while investigating an unrelated bug report from jsg@
2016-08-09When connect(2) is interrupted by a signal it continues asynchronouslyTodd C. Miller
and you need to do the same poll(2) dance as if the socket was non-blocking. Fixes a crash when the window is resized while connecting. OK deraadt@
2016-08-08Improve error message for overlong ControlPath. ok markus@ djm@Darren Tucker
2016-08-08trim the dsaparam section; ok guentherJason McIntyre
2016-08-08/tmp and /var/tmp are the same, consistently use the former in bothIgor Sobrado
build/recover and documentation. ok millert@, tb@, martijn@ and schwarze@
2016-08-07Update online manual path to man.openbsd.org.Theo Buehler
ok espie
2016-08-05missing <endian.h> reported by Bapt@iste Daroussin, found on FreeBSDIngo Schwarze
2016-08-05fix a typo that prevented names from .Dt from getting priority overIngo Schwarze
names from .Sh NAME; no dire consequences on OpenBSD since we no longer have MLINKS for mdoc(7) pages
2016-08-05All four arguments can be omitted by specifying a dash.Theo Buehler
While there, remove a superfluous 's'. discussed with jmc
2016-08-05If reps and steps were omitted, while begin and end were specified,Theo Buehler
use a default step size of +1 or -1. Fixes the last two failing regression tests dhhd and dhhd2. Adapted from FreeBSD. 'good direction' deraadt
2016-08-05If "%%" appears in the format string, skip it properly.Theo Buehler
Part of pjanzen's fixes in r1.8, but was lost in r1.17. Fixes regression tests wp3, wp4, wp5. 'good direction' deraadt
2016-08-05Initialize reps, begin, end, steps to their defaults.Theo Buehler
Makes jot - - - - behave the same way as jot -, jot - - and jot - - - instead of spurting out zeroes indefinitely. Fixes the dddd regression test and matches FreeBSD and NetBSD. From attila () stalphonsos ! com, thanks! 'good direction' deraadt
2016-08-05Switch from select(2) to poll(2); ok millert@Jeremie Courreges-Anglas
No need to check for POLLHUP since those are UDP sockets.
2016-08-05shorten the openssl dsa text;Jason McIntyre
2016-08-04Fix an assertion failure that happened when trying to add a pageIngo Schwarze
with makewhatis -d to a completely empty database. Reported by Mark Patruck <mark at wrapped dot cx>, thanks!
2016-08-03strnames[i][0] == 'k' && strnames[i][0] == 'f' should beKenneth R Westerback
strnames[i][0] == 'k' && strnames[i][1] == 'f'. Spotted by the Echelon team with AppChecker static analyzer. millert@ naddy@ and ncurses 6.0 all agree.
2016-08-03We only replace the first %%, not multiple (use %2 for second).Nicholas Marriott
2016-08-03Fix minimum size when pane status line is enabled, reported by Y Petremann.Nicholas Marriott
2016-08-03shorten the openssl dhparam text;Jason McIntyre
guenther helped rewrite the -dsaparam parts.
2016-08-03small refactor of cipher.c: make ciphercontext opaque to callersDamien Miller
feedback and ok markus@
2016-08-03Fix bug introduced in rev 1.467 which causes "buffer_get_bignum_ret:Darren Tucker
incomplete message" errors when built with WITH_SSH1 and run such that no Protocol 1 ephemeral host key is generated (eg "Protocol 2", no SSH1 host key supplied). Reported by rainer.laatsch at t-online.de, ok deraadt@
2016-08-02Ignore the -bindir option, meaningless on OpenBSD.Jeremie Courreges-Anglas
Lack of -bindir handling is not a problem right now because -bindir is passed to cc(1) which ignores it, and because read(2) on /usr/local/bin returns 0 right now, so ld(1) copes with it. But there are plans to make read(2) fail with EISDIR. Input from and bulk builds thanks to ajacoutot@, ok ajacoutot@ espie@
2016-08-01Repair makewhatis -t, sorry for breaking it in the previous commit.Ingo Schwarze
Committing this quickly because it hurts package builders. Regression reported by naddy@.
2016-08-01Allow a bel character in wall. This was missed when migrating away fromMartijn van Duren
vis(3). This brings the allowed characters on par with write(1). Noticed by consus <at> gmx <dot> com OK millert@