summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-08-05Fix a trio of bugs in the local/remote window calculation for datagramDamien Miller
data channels (i.e. TunnelForward): Calculate local_consumed correctly in channel_handle_wfd() by measuring the delta to buffer_len(c->output) from when we start to when we finish. The proximal problem here is that the output_filter we use in portable modified the length of the dequeued datagram (to futz with the headers for !OpenBSD). In channel_output_poll(), don't enqueue datagrams that won't fit in the peer's advertised packet size (highly unlikely to ever occur) or which won't fit in the peer's remaining window (more likely). In channel_input_data(), account for the 4-byte string header in datagram packets that we accept from the peer and enqueue in c->output. report, analysis and testing 2/3 cases from wierbows AT us.ibm.com; "looks good" markus@
2010-08-04exit(2) on xcalloc failure. From Daniel Dickman <didickman () gmailRay Lai
! com>, thanks! OK deraadt
2010-08-04switch back to kqueue for now, since (a) kqueue has been fixed to dealTheo de Raadt
with strange devices and (b) since there appears to be a bull in the poll code in libevent as well... requested by nicm who is away
2010-08-04In .Bd -literal, break the output line after the last element of eachIngo Schwarze
input line, not after the first element. Since free-form text lines only have a single element in literal mode, this is only relevant for macro lines inside literal displays, and only for those containing more than one macro. Fixes e.g. awk(1) and boot_config(8). Note this fix differs from what kristaps@ committed to bsd.lv because those changes introduce regressions with respect to blank lines in literal mode. With permission from deraadt@ to still fix bugs in mandoc.
2010-08-04Add missing #ifndef YY_NO_INPUT around the input() function whenTodd C. Miller
"%option noinput" is specified. OK deraadt@
2010-08-04clean for -WuninitializedDamien Miller
2010-08-04Support CA keys in PKCS#11 tokens; feedback and ok markus@Damien Miller
2010-08-04commited the wrong version of the hostbased certificate diff; thisDamien Miller
version replaces some strlc{py,at} verbosity with xasprintf() at the request of markus@
2010-08-04enable certificates for hostbased authentication, from Iain Morgan;Damien Miller
"looks ok" markus@
2010-08-04tighten the rules for certificate encoding by requiring that optionsDamien Miller
appear in lexical order and make our ssh-keygen comply. ok markus@
2010-08-04Remove mentions of weird "addr/port" alternate address format for IPv6Damien Miller
addresses combinations. It hasn't worked for ages and we have supported the more commen "[addr]:port" format for a long time. ok jmc@ markus@
2010-08-03that had to be addedHenning Brauer
2010-08-02Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID andMiod Vallat
USB_SET_REPORT ioctls in ukbd and ums. This allows usbhidctl to be used on these devices e.g. to dump the report descriptor of troublesome models. ok deraadt@
2010-08-02Only open with O_RDWR if we are actually chaging a report descriptor, otherMiod Vallat
operations only need O_RDONLY. ok blambert@ deraadt@
2010-08-01Move the new mdoc(7) manual written by kristaps@, replacing the old oneIngo Schwarze
which had much less information, such that the new one gets installed. No change to the build system required, no text change in this commit. Doing the big move early even though a few more improvements will follow. The duplicate information in mdoc.samples(7) will be cleaned up post-release. ok jmc@, and kristaps@ agreed with the plan, too
2010-08-01Make parsing of /etc/remote work again (some of the options were theNicholas Marriott
wrong type), try to make it clearer what comes from where, and add a few XXX. Currently there is a mess of default options set in vinit(), default options set in getremote(), stuff read from /etc/remote and options read from the command-line, and there remains the problems with leftover options from rotation. This all needs to be sorted out properly later. Noticed while trying to find a possible problem reported by miod.
2010-08-01change buf_release() prototype accordingly to buf.czinovik
unbreaks opencvs build
2010-08-01change returning type to void like it is done in OpenRCS:buf_release()zinovik
ok nicm@
2010-08-01don't rely on mbuf.h to pull in pool.h here eitherBret Lambert
ok miod@
2010-08-01fix use of uninitialized variable.Charles Longeau
reported by gcc. ok canacar@
2010-08-01remove unused variableCharles Longeau
ok thib@
2010-08-01Sync to bsd.lv:Ingo Schwarze
State that we parse and ignore \s and \m font size and colour control sequences, and remove the detailed, irrelevant documentation.
2010-07-31Correct Copyright lines in the rarely touched files:Ingo Schwarze
* add missing years (only where substantial changes were committed) * update Kristaps' email address in the remaining places No code changes.
2010-07-31Major cleanup (but there is still more to come):Ingo Schwarze
* rewrite .An, .Bd, .Bk, .Bl, .Ex descriptions * correct "parsable" to "parsed" * and various formatting and wording tweaks This commit includes a patch from kristaps@ explaining empty .Dd. Feedback and OK jmc@ and kristaps@.
2010-07-31Merge bsd.lv version 1.10.5: last larger batch of bug fixes before release.Ingo Schwarze
NOT including Kristaps' .Bd -literal changes which cause regressions. Features: * -Tpdf now fully working Bugfixes: * proper handling of quoted strings by .ds in roff(7) * allow empty .Dd * make .Sm start no-spacing after the first output word * underline .Ad * minor fixes in -Thtml and some optimisations in terminal output.
2010-07-31introduce macro SIZE_LEFT and function buf_grow() from OpenRCSzinovik
buf_grow() replaces macro BUF_GROW() ok nicm@, ray@
2010-07-31adds a remark about how printing routing labels to -r, it is theIgor Sobrado
more logical place to find this information; improve description for the -v option (stolen from NetBSD). written with excellent advice from bluhm@ and jmc@. ok jmc@
2010-07-31When looking for revision, break out of the loop at the end rather thanNicholas Marriott
looping forever. This prevents the server going into an infinite loop when the repository is behind the checkout, but the behaviour is not correct (it is an error rather than ignoring the file), so mark with an XXX for now. Some underlying OpenCVS functions are too fatal()-happy and will probably need to be changed in order to fix this properly. Problem reported by sthen. ok xsa ray
2010-07-31Checking for -1 as an overflow value is pretty absurd. ReturningRay Lai
the unix epoch is equally absurd. Just return Start for now. We may add overflow checks in the future. OK xsa nicm
2010-07-31remove 2 years old compatibility modeAlexandre Ratchov
2010-07-31remove forgotten debug messageAlexandre Ratchov
2010-07-30Check date_parse return values.Ray Lai
OK xsa
2010-07-30Do not print "Label" caption for "netstat -rvA".Alexander Bluhm
ok markus@
2010-07-29Replace abort(), fatal(), and errx() with return -1, since date_parseRay Lai
returns -1 on error. OK nicm
2010-07-29Print a column with the routing label if "netstat -vr" or "routeAlexander Bluhm
-v show" are called with the -v switch. ok markus@
2010-07-28Truncate output file when compressing. OK deraadt@Todd C. Miller
2010-07-28dup() the stdin fd so it isn't closed twice (once for stdin, once for tty).Nicholas Marriott
2010-07-28Support -U and -C to specify the context length for "cvs diff".Nicholas Marriott
This doesn't alter cvs rdiff, where -U and -C are not support by GNU cvs. ok sthen zinovik
2010-07-28Make BUFs autoextend by default. This was already done in OpenCVSRay Lai
a while ago. OK zinovik nicm
2010-07-27Fix compilation on gcc2 platforms, where _Bool and _Complex aren'tPhilip Guenthe
built into the compiler and instead have to be gotten from stdbool.h and complex.h Problem noted by miod@, fix by deraadt@
2010-07-26fix SYNOPSIS (yes, there are still some issues here);Jason McIntyre
2010-07-26- fix a spacing issue in SYNOPSISJason McIntyre
- occurence -> occurrence
2010-07-25^U scrolls backwards, not forwards; from marrob at lavabit comJason McIntyre
2010-07-25Sync to bsd.lv; in particular, pull in lots of bug fixes.Ingo Schwarze
new features: * support the .in macro in man(7) * support minimal PDF output * support .Sm in mdoc(7) HTML output * support .Vb and .nf in man(7) HTML output * complete the mdoc(7) manual bug fixes: * do not let mdoc(7) .Pp produce a newline before/after .Sh; reported by jmc@ * avoid double blank lines related to man(7) .sp and .br * let man(7) .nf and .fi flush the line; reported by jsg@ and naddy@ * let "\ " produce a non-breaking space; reported by deraadt@ * discard \m colour escape sequences; reported by J.C. Roberts * map undefined 1-character-escapes to the literal character itself maintenance: * express mdoc(7) arguments in terms of an enum for additional type-safety * simplify mandoc_special() and a2roffdeco() * use strcspn in term_word() in place of a manual loop * minor optimisations in the -Tps and -Thtml formatting frontends
2010-07-25echo behaves differently in sh and csh, only handling C-style escapesPhilip Guenthe
in the former, so switch an example that needs them to use printf instead. From bcr at freebsd.org. ok halex@
2010-07-24Teach lint about C99's _Bool and _Complex, plus some related gccPhilip Guenthe
extensions: __real__ and __imag__ operators, the use of '~' for complex conjugation, and 'i' or 'j' as a suffix for complex constants. While this doesn't handle folding and overflow detection for complex constants correctly, it's good enough to make it through libm...and found several bugs once it could do so. "no objections" miod@, krw@
2010-07-24When changing so that the client passes its stdout and stderr as well asNicholas Marriott
stdin up to the server, I forgot one essential point - the tmux server could now be both the producer and consumer. This happens when tmux is run inside tmux, as well as when piping tmux commands together. So, using stdio(3) was a bad idea - if sufficient data was written, this could block in write(2). When that happened and the server was both producer and consumer, it deadlocks. Change to use libevent bufferevents for the client stdin, stdout and stderr instead. This is trivial enough for output but requires a callback mechanism to trigger when stdin is finished. This relies on the underlying polling mechanism for libevent to work with whatever devices to which the user could redirect stdin, stdout or stderr, hence the change to use poll(2) over kqueue(2) for tmux.
2010-07-24kqueue(2) is currently broken when used with /dev/null and a few otherNicholas Marriott
devices. An upcoming fix for some problems with the client stdout/stderr handling relies on it working, so make tmux force libevent to use poll(2) via EVENT_NOKQUEUE, until we have fixed kqueue.
2010-07-24Send normal output to stdout instead of everything to stderr. ThisRay Lai
is currently done in the latest versions of GNU patch. Please watch out for output appearing out-of-order. Discussed with millert and deraadt. OK deraadt
2010-07-24Include pid file name in error message for a failed kill(). Prompted byNicholas Marriott
PR 6288. ok deraadt