summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2015-02-17Render \(lq and \(rq as '"' in -Tascii mode but leave the renderingIngo Schwarze
of .Do/.Dc, .Dq, .Lb, and .St untouched. Reduces groff-mandoc differences in base by about 7%. Reminded of the issue by naddy@.
2015-02-17Cope with another one of the many kinds of DocBook stupidity:Ingo Schwarze
Instead of just using .br, DocBook sometimes fiddles with the utterly unportable internal register \n[an-break-flag] that is only available in the GNU implementation of man(7) and then arms an input line trap to call the equally unportable internal macro .an-trap that, in the GNU implementation, inspects that variable; all the world is GNU, isn't it? Since naddy@ reports that quite a few ports manuals suffer from this insanity, let's just translate it to the intended .br. Et ceterum censeo DocBookem esse delendam.
2015-02-17Let .it accept numerical expressions, not just numerical constants.Ingo Schwarze
For .it, ignore scaling units in roff_getnum(). Inside parentheses, skip whitespace after a sign in roff_getnum(). Parse and ignore unary plus in roff_getnum(). As a bonus, get rid of the only call to mandoc_strntoi() in roff.c.
2015-02-17Mark up email addresses semantically with Mt.Anthony J. Bentley
ok schwarze@
2015-02-17Convert a strcpy() call to strlcpy(); ok millert@ sthen@Miod Vallat
2015-02-17shuffle reallocarray arguments around for better overflow checkingTed Unangst
2015-02-17undef tryreallocarray like tryrealloc when done.Ted Unangst
from Kamil Rytarowski. ok bcallah
2015-02-17Regression: I broke logging of public key fingerprints in 1.46.Damien Miller
Pointed out by Pontus Lundkvist
2015-02-16partial backout of:Damien Miller
revision 1.441 date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid : x8klYPZMJSrVlt3O; Let sshd load public host keys even when private keys are missing. Allows sshd to advertise additional keys for future key rotation. Also log fingerprint of hostkeys loaded; ok markus@ hostkey updates now require access to the private key, so we can't load public keys only. The improved log messages (fingerprints of keys loaded) are kept.
2015-02-16Revise hostkeys@openssh.com hostkey learning extension.Damien Miller
The client will not ask the server to prove ownership of the private halves of any hitherto-unseen hostkeys it offers to the client. Allow UpdateHostKeys option to take an 'ask' argument to let the user manually review keys offered. ok markus@
2015-02-16Refactor hostkeys_foreach() and dependent codeDamien Miller
Deal with IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing changed ok markus@ as part of larger commit
2015-02-16Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location.Jeremie Courreges-Anglas
Remove unneeded ssl.h includes. Also built-checked against openssl-1.0.1e. ok otto@
2015-02-16clean up post_dt() validation function;Ingo Schwarze
improved diagnostics, minus six lines of code
2015-02-16Declare ge25519_base as extern, to prevent it from becoming a common. Gets usMiod Vallat
rid of ``lignment 4 of symbol `crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in mod_ed25519.o'' warnings at link time.
2015-02-16Delete the -V option. It serves no purpose but keeps confusing people.Ingo Schwarze
2015-02-16Clamp width and indent settings to sensible values. Ignore errors for now.Ted Unangst
ok schwarze
2015-02-16Check if slot is NULL, and if so, drop the connection. For now slotAlexandre Ratchov
is never NULL, but this is an accident.
2015-02-16add missing protos, fix spacingAlexandre Ratchov
2015-02-16Allow files to be skipped in the poll(2) event loop, in caseAlexandre Ratchov
there are events already available (for immediate processing)
2015-02-16Use signed integers as offset in the buffer (as aucat does) toAlexandre Ratchov
avoid other signed integer being accidently promoted to unsigned in future code.
2015-02-15Use "In" to mark up include files, instead of wrongly wrapping with Aq.Anthony J. Bentley
Aq is not the same as <> in non-ASCII situations, so this caused incorrect output in some places. And it provided no semantics besides. ok schwarze@
2015-02-14Support for nc -T on IPv6 addresses.Jeremie Courreges-Anglas
ok sthen@
2015-02-14shut up about tabs in SYNOPSIS .Fd lines, there is no good way to avoid themIngo Schwarze
2015-02-13make rekey_limit for sshd w/privsep work; ok djm@ dtucker@Markus Friedl
2015-02-13implicit declaration of function 'free'; add missing stdlib.hDavid Coppa
OK sthen@
2015-02-13Call tls_config earlier; otherwise TLS_PROTOCOLS_ALL (to allow TLSv1.0 etc)Stuart Henderson
was only called if -S was used. Fixes TLSv1.0/1.1. Problem reported by nigel@, ok jsing
2015-02-12Free the buffers used for the sysctl. OK sthen@Claudio Jeker
2015-02-12Prevent sshd spamming syslog with "ssh_dispatch_run_fatal: disconnected".Darren Tucker
ok markus@
2015-02-12be more explicit about how -A and -P work, and fix a booboo in previous;Jason McIntyre
help/ok claudio
2015-02-12Initialize buffer pointers passed to get_sysctl to NULL; otherwise they pointStuart Henderson
to random memory so when the sysctl-estimate is too small, the realloc() fails. Problem reported by Ze Loff, ok claudio
2015-02-12Do not confuse .Bl -column lists that just broken another blockIngo Schwarze
with newly opened .Bl -column lists; fixing an assertion failure jsg@ found with afl: test case #481, Bl It Bl -column It Bd El text text El
2015-02-12Delete the mdoc_node.pending pointer and the function calculatingIngo Schwarze
it, make_pending(), which was the most difficult function of the whole mdoc(7) parser. After almost five years of maintaining this hellhole, i just noticed the pointer isn't needed after all. Blocks are always rewound in the reverse order they were opened; that even holds for broken blocks. Consequently, it is sufficient to just mark broken blogs with the flag MDOC_BROKEN and breaking blocks with the flag MDOC_ENDED. When rewinding, instead of iterating the pending pointers, just iterate from each broken block to its parents, rewinding all that are MDOC_ENDED and stopping after processing the first ancestor that it not MDOC_BROKEN. For ENDBODY markers, use the mdoc_node.body pointer in place of the former mdoc_node.pending. This also fixes an assertion failure found by jsg@ with afl, test case #467 (Bo Bl It Bd Bc It), where (surprise surprise) the pending pointer got corrupted. Improved functionality, minus one function, minus one struct field, minus 50 lines of code.
2015-02-12Take a reference to prevent cmdq being freed during the command. CanNicholas Marriott
happen to cfg_cmd_q (possibly others) when source-file recurses into cmdq_continue. Fixes bug reported by Ismail Donmez and Theo Buehler.
2015-02-12Don't clear ICRNL when editing mode is off, so that character local echoPhilip Guenther
mode don't echo ^M locally analysis and patch from Stanislav Brabec (sbrabec (at) suse.cz)
2015-02-12qsort() compare functions MUST use memcmp() instead of bcmp() to havePhilip Guenther
the correct return value. Prefer memcmp() anyway for portability. ok jsing@ tedu@
2015-02-12Change TLS_PROTOCOLS_DEFAULT to be TLSv1.2 only. Add a TLS_PROTOCOLS_ALLJoel Sing
that includes all currently supported protocols (TLSv1.0, TLSv1.1 and TLSv1.2). Change all users of libtls to use TLS_PROTOCOLS_ALL so that they maintain existing behaviour. Discussed with tedu@ and reyk@.
2015-02-12swap limits.h for sys/limits.hBrent Cook
ok jsing@
2015-02-12Switch the printing of open sockets from ugly KVM internals to useClaudio Jeker
kvm_getfiles. This allows to run netstat without any extra privileges and removes another setgid program from base.. There is still kvm reader code in there which is used for debugging purposes (crashdump). netstat should still behave mostly the same. deraadt@ and sthen@ agree that it is time to get this puppy in.
2015-02-11do not access a NULL pointer if an .Eo block lacks a tail;Ingo Schwarze
found by jsg@ with afl, test case #16
2015-02-11explicit blocks close out .Nd; fixing data structure corruptionIngo Schwarze
eventually leading to NULL pointer access; found by jsg@ with afl, text case #455.
2015-02-11Enable building with -DOPENSSL_NO_DEPRECATED.Doug Hogan
If you didn't enable deprecated code, there were missing err.h and bn.h includes. This commit allows building with or without deprecated code. This was not derived from an OpenSSL commit. However, they recently enabled OPENSSL_NO_DEPRECATED in git and fixed these header problems in a different way. Verified with clang that this only changes line numbers in the generated asm. ok miod@
2015-02-11Some packet error messages show the address of the peer, but might beDamien Miller
generated after the socket to the peer has suffered a TCP reset. In these cases, getpeername() won't work so cache the address earlier. spotted in the wild via deraadt@ and tedu@
2015-02-10Be more careful to not generate empty .In, .St, and .Xr nodes.Ingo Schwarze
That could happen when their first argument was another called macro, causing a NULL pointer access in .St validation found by jsg@ with afl. Make in_line_argn() easier to understand by using one state variable rather than two.
2015-02-10Introduce an openssl(1) certhash command.Joel Sing
This is effectively a reimplementation of the functionality provided by the previously removed c_rehash Perl script. The c_rehash script had a number of known issues, including the fact that it needs to run openssl(1) multiple times and that it starts by removing all symlinks before putting them back, creating atomicity issues/race conditions, even when nothing has changed. certhash is self-contained and is intended to be stable - no changes should be made unless something has actually changed. This means it can be run regularly in a production environment without causing certificate lookup failures. Further testing and improvements will happen in tree. Discussed with tedu@
2015-02-10Sanity check TZ environment variable; backport from sudo 1.8.12Todd C. Miller
2015-02-10Do not read past the end of the buffer if an "f" layout font modifierIngo Schwarze
is followed by the end of the input line instead of a font specifier. Found by jsg@ with afl, test case #591. While here, improve functionality as well: * There is no "r" font modifier. * Font specifiers (as opposed to font modifiers) are case sensitive. * One-character font specifiers require trailing whitespace. * Ignore parenthised and two-letter font specifiers.
2015-02-10trim trailing white space, no code change;Ingo Schwarze
from Svyatoslav Mishyn <juef at openmailboxd dot org>, Crux Linux
2015-02-10Explain all WARNING, ERROR, and UNSUPP messages in the DIAGNOSTICS section.Ingo Schwarze
Feedback provided by jmc@ some time ago helped me to get this much more concise than my initial attempt. "i'm fine with it going in" jmc@
2015-02-09If the kmem options are in use, drop the gid earlier.Theo de Raadt
ok djm
2015-02-09fix some leaks in error pathsJonathan Gray
ok markus@