summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-02-05Improve <table> syntax:Ingo Schwarze
The <col> element can only appear inside <colgroup>, so use <colgroup>. The <tbody> element is optional and useless, so don't use it. Even if we would ever need <thead> or <tfoot>, <tbody> would still be optional and useless; besides, we will likely never need <thead> or <tfoot>, simply because our languages don't support such functionality.
2017-02-05Support IPv6 proxy addressesJeremie Courreges-Anglas
ok beck@
2017-02-04Missing va_end, from Anton Lindqvist.Nicholas Marriott
2017-02-04Include netinet/in.h for in_addr_t now it has moved out of sys/types.h.Jonathan Gray
gcc warned about this, clang fatally errored.
2017-02-04Do not fix the default indent for all subsequent files; some may useIngo Schwarze
a different macro language and hence require a different indent. You can see the effect with "man -a 1 host hostname".
2017-02-03use ssh_packet_set_log_preamble() to include connection usernameDamien Miller
in packet log messages, e.g. Connection closed by invalid user foo 10.1.1.1 port 44056 [preauth] ok markus@ bz#113
2017-02-03add ssh_packet_set_log_preamble() to allow inclusion of a preambleDamien Miller
string in disconnect messages; ok markus@
2017-02-03support =- for removing methods from algorithms lists, e.g.Damien Miller
Ciphers=-*cbc; suggested by Cristian Ionescu-Idbohrn in bz#2671 "I like it" markus@
2017-02-03Cache status line position to reduce option lookups during output.Nicholas Marriott
2017-02-03Expand lines more aggressively to reduce rate of allocations.Nicholas Marriott
2017-02-03Minor cleanup, no functional change:Ingo Schwarze
We always have a roff parser, so mparse_free() does not need to check for existence before freeing it. Also arrange code in struct mparse, mparse_reset(), and mparse_free() in the same order for readability.
2017-02-03If an application parses multiple files with mparse_readfd(3) butIngo Schwarze
without using mparse_open(3) to open the files, and if one of the files includes a gzip'ed file with .so, then the gzip flag remains set and the next main file will be expected to be gzip'ed. Fix this by clearing the gzip flag in mparse_reset(3). Bug found and patch provided by Michael <Stapelberg at debian dot org>.
2017-02-03Add a window or pane id "tag" to each format tree and use it to separateNicholas Marriott
jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
2017-02-03allow form-feed characters at EOL; bz#2431 ok dtucker@Damien Miller
2017-02-03Make ssh_packet_set_rekey_limits take u32 for the number of secondsDarren Tucker
until rekeying (negative values are rejected at config parse time). This allows the removal of some casts and a signed vs unsigned comparison warning. rekey_time is cast to int64 for the comparison which is a no-op on OpenBSD, but should also do the right thing in -portable on anything still using 32bit time_t (until the system time actually wraps, anyway). some early guidance deraadt@, ok djm@
2017-02-02In vasnmprintf() return an error if malloc fails and don't setJonathan Gray
a function argument to the address of free'd memory. ok djm@
2017-02-01Add a missing sizeof(*lines) factor to previous commit to ensure we zeroTheo Buehler
out enough of the lines array. Problem found with malloc's 'J' option. ok martijn
2017-02-01Don't allocate the buffer for the -n flag in one call.Martijn van Duren
Fixes an ENOMEM with an extremely large -n value and a small input. Issue reported by Soner Tari OK stsp@
2017-02-01Implement "all event" (1003) mouse mode but in a way that works. TheNicholas Marriott
main issue is that if we have two panes, A with 1002 and B with 1003, we need to set 1003 outside tmux in order to get all the mouse events, but then we need to suppress the ones that pane A doesn't want. This is easy in SGR mouse mode, because buttons == 3 is only used for movement events (for other events the trailing m/M marks a release instead), but in normal mouse mode we can't tell so easily. So for that, look at the previous event instead - if it is drag+release as well, then the current event is a movement event.
2017-02-01update currency exchanges rates;Jason McIntyre
2017-02-01Return true reason for port forwarding failures where feasible ratherDarren Tucker
than always "administratively prohibited". bz#2674, ok djm@
2017-01-31add missing HISTORY informationIngo Schwarze
2017-01-30Small correction to the known_hosts section on when it is updated.Darren Tucker
Patch from lkppo at free.fr some time ago, pointed out by smallm at sdf.org
2017-01-30When a flag option is used in a format, it should use the number formNicholas Marriott
not string.
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@