summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-01-30Rework fill mode handling for -man -Thtml.Ingo Schwarze
Basically, open <pre> whenever printing text in no-fill mode and it is not already open, and close it whenever printing something that cannot be inside <pre>. This fixes a crash reported by Michael <Stapelberg at debian dot org> in the French Linux chroot(2) manual and also improves rendering for OpenBSD pages like DPMSGetTimeouts(3) and GLwDrawingArea(3). These changes also permitted retiring struct mhtml.
2017-01-30revise keys/principals command hang fix (bz#2655) to consume entireDamien Miller
output, avoiding sending SIGPIPE to subprocesses early; ok dtucker@
2017-01-30small cleanup post SSHv1 removal:Damien Miller
remove SSHv1-isms in commented examples reorder token table to group deprecated and compile-time conditional tokens better fix config dumping code for some compile-time conditional options that weren't being correctly skipped (SSHv1 and PKCS#11)
2017-01-30some explicit NULL tests when dumping configured forwardings;Damien Miller
from Karsten Weiss
2017-01-30misplaced braces in test; from Karsten WeissDamien Miller
2017-01-30don't dereference authctxt before testing != NULL, it causes compilersDamien Miller
to make assumptions; from Karsten Weiss
2017-01-29Add -n to break-pane.Nicholas Marriott
2017-01-29Fix typo in ~C error message for bad port forward cancellation.Darren Tucker
bz#2672, from Brad Marshall via Colin Watson and Ubuntu's bugtracker.
2017-01-29eliminate one useless struct and one level of indirection;Ingo Schwarze
no functional change
2017-01-29obvious protection against null pointer, because it's quite possible for cgnMarc Espie
to not have a parent...
2017-01-28Add a warning "new sentence, new line".Ingo Schwarze
This does not attempt to pinpoint each and every offender, but instead tries very hard to avoid false positives: Currently, there are only two false positives in the whole OpenBSD base system. Only do this in mdoc(7), not in man(7), because manuals written in man(7) typically have much worse problems than this. OK jmc@ on a previous version of the patch
2017-01-28Simplify usage of print_otag() even more:Ingo Schwarze
accept NULL to skip the attribute or format.
2017-01-28.Bl -column with zero columns is legal, so don't segfalt on it.Ingo Schwarze
Bug introduced in rev. 1.123 triggered for example in gssapi(3), analyzed and reported by Michael <Stapelberg at debian dot org>. Simplify the code a bit more while here.
2017-01-28Do not clear the key table when changing session on a client, so thatNicholas Marriott
switch-client and friends work with bind -n.
2017-01-27warn about invalid output optionsIngo Schwarze
and error out if they occur on the command line; missing feature found in the TODO file
2017-01-27warn about missing one-line description;Ingo Schwarze
missing feature found in the TODO file
2017-01-27Parse the section number from the content of preformatted pagesIngo Schwarze
and warn if it doesn't match the directory where the file was found.
2017-01-27If parsing a page reveals that it is neither mdoc(7) nor man(7),Ingo Schwarze
fall back to treating it as preformatted rather than treating it as man(7) anyway.
2017-01-27fix base directory detection for makewhatis -tIngo Schwarze
2017-01-27Always register names taken from file names in the names ohash.Ingo Schwarze
Bug found by makewhatis -p crashing in mlink_check().
2017-01-26oscp -> ocsp;Jason McIntyre
from holger mikolon, plus one more in nc;
2017-01-26Fix -man -Thtml formatting after .nf (which has nothing to doIngo Schwarze
with "literal", by the way, it means "no fill"): * Use <pre> such that whitespace is preserved. * Preserve lines breaks. * For font alternating macros, avoid node recursion which required scary juggling with the fill state. Instead, simply print the text children directly. Missing feature first noticed by kristaps@ in 2011, the again reported by afresh1@ in 2016, and finally reported here: https://github.com/Debian/debiman/issues/21 , which i only found because of Shane Kerr's comment here: https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc
2017-01-25Clear option before adding to array if no -a, reported by MichaelNicholas Marriott
Nickerson.
2017-01-25Revert previous for now, it will break TERM=screen.Nicholas Marriott
2017-01-25If xterm-keys is on, use xterm(1) style keys for Home and End as well asNicholas Marriott
modified keys.
2017-01-25off-by-one, leading to segfaults. Trivial fix.Marc Espie
reported by jasper@
2017-01-25cetificate -> certificate;Jason McIntyre
2017-01-25+arm64Theo de Raadt
2017-01-25Add the style sheet used on man.openbsd.org to the source tree.Ingo Schwarze
It is NOT used during "make build" and NOT installed, but it is helpful for people trying to read and understand html.c and mdoc_html.c, and maybe even for users of mandoc -Thtml. OK deraadt@
2017-01-25Improve HTML formatting of .Bl -tag.Ingo Schwarze
In particular, when using the style sheet, put the body on the same line as the head for short heads, or on the next line for long heads, in a way that preserves both correct indentation and correct vertical spacing with and without -compact, and with one or more heads per body (hi, Zaphod) - eight use cases so far - and with and without -tag, and with and without -offset, 32 use cases grand total. Using many ideas from zhuk@, from <David dot Dahlberg at fkie dot fraunhofer dot de>, and from Benny Lofgren <bl dash lists at lofgren dot biz>, and a few of my own. This is an excellent demonstration that CSS is an extremely hostile language, much more trapful and much harder to use than, say, C. When matthew@ reported this in July 2014 (!), it was already a known issue, and i no longer remember for how long. My first serious attempt at fixing it (in November 2015) failed miserably. I'd love to see simplifications of both the generated HTML code and of the style sheet, but without breaking any of the 32 use cases, please.
2017-01-24Add -S noverifytime to ftp to permit an unvalidated TLS connection whenBob Beck
you don't knwo what time it is
2017-01-24Fixed keys for choose mode, and remove the last mode keys bits.Nicholas Marriott
2017-01-24Fix set -u on array options.Nicholas Marriott
2017-01-24Make update-environment an array as well.Nicholas Marriott
2017-01-24Convert terminal-overrides to an array option.Nicholas Marriott
2017-01-24Remove some lies about terminal-overrides from tmux.1.Nicholas Marriott
2017-01-24server-info can become an alias rather than a command.Nicholas Marriott
2017-01-24Add support for custom command aliases, this is an array option whichNicholas Marriott
contains items of the form "alias=command". This is consulted when an unknown command is parsed.
2017-01-24If given an array option without an index either show or set all items,Nicholas Marriott
and support -a for array options. Allow the separator for set to be specified in the options table (will be used for backwards compatibility later).
2017-01-24Shorten a long line, and don't leak buffer in paste_add if size is zero.Nicholas Marriott
2017-01-24Add a -groups option to openssl s_client, which allows supported EC curvesJoel Sing
to be specified as a colon separated list. ok beck@
2017-01-23Open /dev/ptm before pledge() and save it to be used for PTMGET laterNicholas Marriott
(this means inlining forkpty()). ok deraadt
2017-01-23Relink opencvs to the build.Joris Vink
sure deraadt@
2017-01-22Accept the OSC 52 escape sequence inside tmux to add a new buffer, fromNicholas Marriott
harry dot gindi at live dot com.
2017-01-21Dedup prototype for really_kill().Martin Natano
2017-01-21Use errno to make the debug message more descriptive.Martin Natano
ok deraadt
2017-01-21Expose the close-on-exec flag near the R/W flags.Theo de Raadt
ok guenther
2017-01-21The POSIX APIs that that sockaddrs all ignore the s*_len field in thePhilip Guenther
incoming socket, so userspace doesn't need to set it unless it has its own reasons for tracking the size along with the sockaddr. ok phessler@ deraadt@ florian@
2017-01-21Stop calling out to sudo/doas to kill processes. Reliance on systemTheo de Raadt
configuration to perform a racy behaviour is not wise. ok natano
2017-01-21Nuke more whitespace caught in the headlights of "warning:"Kenneth R Westerback
rectification.