summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2016-08-20When scanning upwards for a column list to put a .Ta macro in,Ingo Schwarze
ignore body end markers of lists breaking other blocks. Fixing a logical error that caused a NULL deref found by tb@ with afl(1).
2016-08-20If a column list starts with implicit rows (that is, rows without .It)Ingo Schwarze
and roff-level nodes (e.g. tbl or eqn) follow, don't run into an assertion. Instead, wrap the roff-level nodes in their own row. Issue found by tb@ with afl(1).
2016-08-20shorten pkcs7 text;Jason McIntyre
2016-08-20shorten the passwd text; ok jsingJason McIntyre
2016-08-19update man pages now that login.conf uses auto roundsDaniel Jakots
better wording/ok sthen@ ok jmc@
2016-08-19shorten the ocsp text; ok beckJason McIntyre
2016-08-19remove UseLogin option and support for having /bin/login manageDamien Miller
login sessions; ok deraadt markus dtucker
2016-08-18Move connect_sync() to util.c and use it when connecting via httpTodd C. Miller
too. OK sthen@ deraadt@
2016-08-18shorten the nseq text;Jason McIntyre
2016-08-18fix an fd leakJonathan Gray
ok schwarze@
2016-08-17When the content of a manual page does not specify a section, theIngo Schwarze
empty string got added to the list of sections, breaking the database format slightly and causing the page to not be considered part of any section, not even if a section could be deduced from the directory or from the file name. Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.
2016-08-17When reading back a mandoc.db(5) file in order to apply incrementalIngo Schwarze
changes, do not prepend a stray NAME_FILE (0x10) byte to the first names of pages. Bug found while investigating another issue reported by sthen@.
2016-08-17Make sure manuals in architecture-independent directories are treatedIngo Schwarze
as architecture-independent even if they abuse the third (architecture) argument of the .Dt macro for random stuff like "freetds reference manual". While the .Dt syntax is not the same as the .TH syntax in man(7), punishing offenders by treating them as architecture-dependent and hence completely excluding them from searches is too severe. Problem reported by sthen@.
2016-08-17When returning the file size info, only use z_total_in/z_total_outTodd C. Miller
for the read (inflate) case where there might be multiple streams. For the write (deflate) case there can only be a single stream so just use the per-stream total_in/total_out. Fixes "gzip -v" byte counts. OK henning@.
2016-08-16When the commit message is empty, don't default to c)ontinueTheo Buehler
(committing without log message) but a)bort. Also, accept the uppercase versions of the choices. Matches the corresponding change of behavior of GNU cvs. suggested by & ok jcs
2016-08-16Streamline and refactor the code a bit more:Theo Buehler
There are two sentinels for infinite output: infinity == true and reps == 0. Ensure that infinity is set to true whenever reps is set to zero, then we can always use 'if (infinity)'. This allows us to merge the loop for deterministic output into the first if (!randomize) statement, which is a lot tidier. Insert an occasional empty line. "move fast and break stuff" tedu
2016-08-16All that complexity stopped us from getting flying cars by today.Ted Unangst
2016-08-16shorten genrsa; ok jsingJason McIntyre
2016-08-15Catch up with the SSH1 code removal and delete all mention ofChristian Weisgerber
protocol 1 particularities, key files and formats, command line options, and configuration keywords from the server documentation and examples. ok jmc@
2016-08-15Remove more SSH1 server code:Christian Weisgerber
* Drop sshd's -k option. * Retire configuration keywords that only apply to protocol 1, as well as the "protocol" keyword. * Remove some related vestiges of protocol 1 support. ok markus@
2016-08-15Trust the login_getcaptime() declaration and don't cast the arguments toPhilip Guenther
their own expected type
2016-08-14Convert %q to %ll and cast opaque system values to long long.Philip Guenther
Use uint64_t for the KERN_INTRCNT_CNT sysctl() ok krw@
2016-08-14Kill '#if defined(DEBUG) && 0' blocks that used %qPhilip Guenther
ok bentley@ on principle
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@