summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-08-31reintroduce commit from tedu@, which I pulled out for release engineering:Damien Miller
OpenSSL_add_all_algorithms is the name of the function we have a man page for, so use that. ok djm
2010-08-31Implement Elliptic Curve Cryptography modes for key exchange (ECDH) andDamien Miller
host/user keys (ECDSA) as specified by RFC5656. ECDH and ECDSA offer better performance than plain DH and DSA at the same equivalent symmetric key length, as well as much shorter keys. Only the mandatory sections of RFC5656 are implemented, specifically the three REQUIRED curves nistp256, nistp384 and nistp521 and only ECDH and ECDSA. Point compression (optional in RFC5656 is NOT implemented). Certificate host and user keys using the new ECDSA key types are supported. Note that this code has not been tested for interoperability and may be subject to change. feedback and ok markus@
2010-08-31Add buffer_get_cstring() and related functions that verify that theDamien Miller
string extracted from the buffer contains no embedded \0 characters* This prevents random (possibly malicious) crap from being appended to strings where it would not be noticed if the string is used with a string(3) function. Use the new API in a few sensitive places. * actually, we allow a single one at the end of the string for now because we don't know how many deployed implementations get this wrong, but don't count on this to remain indefinitely.
2010-08-26sys/param.h is for kernel interface programs.Theo de Raadt
sys/types.h is the file you want to include.
2010-08-25don't free proxyurl and cookie twice in the location code; with halex@Martynas Venckus
2010-08-25get rid of the nawk hard linkTheo de Raadt
ok millert guenther
2010-08-25When destroying a pane, reset any mode (which reenables paneNicholas Marriott
bufferevent) before freeing the bufferevent.
2010-08-25fix potential use of uninitialized variable.Charles Longeau
reported by gcc. ok jasper@
2010-08-24backout VIS_HEX. guenther@ points out that the C89 \xff encodingDamien Miller
idiotically accepts more then two hex digits following the \x, even on platforms where a char has 8 bits. It is therefore dangerous to have an almost-bit-not-quite compatible format in vis(3). The VIS_ALL (encode all characters) option introduced in the same commit remains.
2010-08-23Clear options before setting up HOME and SHELL, not after. Fixes parsingNicholas Marriott
.tiprc reported by nick@.
2010-08-23Can't call event_del() without event_set() first - so call event_set()Nicholas Marriott
when setting up the client.
2010-08-22small style fixes of no consequnceTed Unangst
2010-08-22MSG_EXIT can now have a return code in the message, so check for thatNicholas Marriott
size as well. Stops the client fatal()ing on exit.
2010-08-21mirror new flags to vis(3): -a to encode all characters, -h to useDamien Miller
hex encoding. feedback jmc@ ok millert@
2010-08-21Backout previous.Ingo Schwarze
As Kristaps found out, i was wrong: .Bl -column phrases do not ignore spacing rules for trailing punctuation in general. In particular, - the rightmost column of a column list is unaffected - columns terminated by the .Ta macro instead of a tab are unaffected - columns ending in a blank are unaffected Spacing rules for trailing punctuation are only ignored when the tab follows the punctuation immediately, without a blank in between, because then the combination of punctuation and tab is treated by roff as a word, and the punctuation is not recognized as isolated. The reason this doesn't work in mandoc is that in the special case of .Bl -column (not in general!), mandoc treats tabs as word delimiters. We either need to solve this differently, or call it a bug in roff.
2010-08-20Centralize handling of literal tabs in term_flushln() in one place,Ingo Schwarze
making the code simpler and easier to understand. No functional change.
2010-08-20When a column contains trailing spaces, calculate the paddingIngo Schwarze
to the start of the next column correctly. Fixing a problem found by jmc@ in sysctl(3), reminded by kettenis@.
2010-08-20.Bl -column phrases ignore spacing rules for trailing punctuationIngo Schwarze
and render it just like normal text. Minimal fix of a formatting bug in operator(7) reported by ray@.
2010-08-20fix previous: when bailing out due to -Wstop,Ingo Schwarze
skip output functions, but not *_endparse; problem reported by kristaps@
2010-08-20polish the code: remove few unused #includes, add missing ones,Alexandre Ratchov
fix NULL vs 0, etc. No behaviour change.
2010-08-20Implement a simple, consistent user interface for error handling.Ingo Schwarze
We now have sufficient practical experience to know what we want, so this is intended to be final: - provide -Wlevel (warning, error or fatal) to select what you care about - provide -Wstop to stop after parsing a file with warnings you care about - provide consistent exit status codes for those warnings you care about - fully document what warnings, errors and fatal errors mean - remove all other cruft from the user interface, less is more: - remove all -f knobs along with the whole -f option - remove the old -Werror because calling warnings "fatal" is silly - always finish parsing each file, unless fatal errors prevent that This commit also includes a couple of related simplifications behind the scenes regarding error handling. Feedback and OK kristaps@; Joerg Sonnenberger (NetBSD) and Sascha Wildner (DragonFly BSD) agree with the general direction.
2010-08-19Do not call event_del() for signals after fork(), just use sigaction()Nicholas Marriott
directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
2010-08-19Do not need to dup() the tty fd sent from the client because it isNicholas Marriott
already dup()d again later. Fixes a leak seen by espie@.
2010-08-19fix NULL pointer deref in midicat option parsing when ``-'' isAlexandre Ratchov
used as filename
2010-08-18Add a cross reference to patch(1)Ingo Schwarze
as suggested by Thomas de Grivel <billitch at gmail dot com> on tech@. While here, remove the SEE ALSO entries (but not the cross references at the appropriate places!) to fnmatch(3), re_format(7), and pr(1). Their relevance is restricted to one single option each, the latter is mostly obsolete nowadays anyway, and the number of SEE ALSO entries is so large that SEE ALSO is starting to look confusing. "yes" jmc@
2010-08-18Remove the standard pod2man \*(C+ pre-predefined string ("C++").Ingo Schwarze
It is always defined in the preamble using .ds when used in manuals. Since we now support .ds, it is no longer necessary to provide it. Triggered by a bug report from Thomas Jeunet, patch by kristaps@.
2010-08-18Ignore \h (local horizontal motion) and \v (local vertical motion) escapesIngo Schwarze
just in the same way as \s (font size) escapes, and handle \s escapes not having an explicit plus or minus sign. This fixes the very ugly rendering of "C++" in gcc(1). Reported by Thomas Jeunet, fixed by kristaps@.
2010-08-18Correctly print .Lk arguments in -Tascii.Ingo Schwarze
Issue reported by Aldis Berzoja, fix by kristaps@.
2010-08-18Remove mandoc(1) compatibility notes that are no longer relevant;Ingo Schwarze
from kristaps@.
2010-08-18Turn the non-trivial PS_GROWBUF macro into a function.Ingo Schwarze
Don't use MAX, it doesn't exist in the default namespace on Solaris. From Joerg Sonnenberger, with a critical fix by kristaps@.
2010-08-18Simplify and sync the code and comments for copying the macro nameIngo Schwarze
in man_pmacro() and mdoc_pmacro(). In particular, no need to use isgraph(3) here, that has already been done in main.c. Joint work by Kristaps and myself, ok kristaps@.
2010-08-18Use isascii(3) to make sure we really throw away non-ASCII characters,Ingo Schwarze
because isgraph(3) returns true for some eight-bit characters. ok kristaps@
2010-08-17several fixes from netbsd:Jasper Lievisse Adriaanse
Coverity CID 1660: Plug memory leaks. Coverity CID 2989: Use the error path to return. Coverity CID 3212: Don't return, goto out in all cases so that cleanup happens. ok otto@
2010-08-16backout previous temporarily; discussed with deraadt@Damien Miller
2010-08-12OpenSSL_add_all_algorithms is the name of the function we have a man pageTed Unangst
for, so use that. ok djm
2010-08-12some inconsequential cleanups. ok deraadtTed Unangst
2010-08-12close any extra file descriptors inherited from parent at start andDamien Miller
reopen stdin/stdout to /dev/null when forking for ControlPersist. prevents tools that fork and run a captive ssh for communication from failing to exit when the ssh completes while they wait for these fds to close. The inherited fds may persist arbitrarily long if a background mux master has been started by ControlPersist. cvs and scp were effected by this. "please commit" markus@
2010-08-12make fgetln fixups look like the man page. correct a pair of brances andTed Unangst
some other style tweaks
2010-08-11plug several resource leaksJasper Lievisse Adriaanse
help and ok millert@ (ok deraadt@ for an earlier version of this diff)
2010-08-11Do not allow duplicate session names to be created, reported by DominikNicholas Marriott
Honnef, patch from Thomas Adam.
2010-08-11Handle failure to change mode, to avoid dying when switching into copyNicholas Marriott
mode when already in a different mode. Reported by "Florian".
2010-08-11Usage string fixes from Ben Boeckel.Nicholas Marriott
2010-08-11Treat trying to link or move to the same window as an error to avoidNicholas Marriott
removing it accidentally.
2010-08-11Change the way backoff works. Instead of stopping reading from the ptyNicholas Marriott
when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. This prevents a dodgy client from causing other clients to go into backoff while still allowing tmux to be responsive (locally) when seeing lots of output.
2010-08-11Show which pane is active in the list-panes output, suggested by DominikNicholas Marriott
Honnef.
2010-08-10s/Usage/usage/Igor Sobrado
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-08-09Match -m prompt string in man page with code. From Daniel MalamentRay Lai
danielm at bluetiger dot net, PR 6234. OK millert
2010-08-09Remove extra `.' from -m prompt string. From Daniel Malament danielmRay Lai
at bluetiger dot net, PR 6234. OK millert
2010-08-08use the same template for all FILES sections; i.e. -compact/.Pp where weJason McIntyre
have multiple items, and .Pa for path names;