summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-11-29automatically order the hostkeys requested by the client based onDamien Miller
which hostkeys are already recorded in known_hosts. This avoids hostkey warnings when connecting to servers with new ECDSA keys that are preferred by default; with markus@
2010-11-29If VISUAL or EDITOR contains "vi", configure mode-keys and status-keysNicholas Marriott
to vi. Based on a diff from martynas@, previously requested by a couple of other people.
2010-11-29correctly load comment for encrypted rsa1 keys;Markus Friedl
report/fix Joachim Schipper; ok djm@
2010-11-29Now that we have proper .de support in the roff(7) library,Ingo Schwarze
it is time to remove the .Sp, .Vb, and .Ve kludge that was added to the man(7) library to build Perl manuals.
2010-11-29Downgrade the easier of the two cases of MANDOCERR_SYNTLINESCOPEIngo Schwarze
to MANDOCERR_LINESCOPE, i.e. from FATAL to ERROR. That is, when an element next line scope is empty except for one or more NSCOPED macros (like in .B .br .br .B), throw away the empty element including its NSCOPED children such that the parser can prod on. While here, improve the error message and tell the user which element has been thrown away.
2010-11-29Implement the roff .ft (change font) request for man(7).Ingo Schwarze
Of course, we don't want to encourage low-level physical markup, but pod2man(1) writes such requests, so Perl manuals contain them, and some Xenocara and lots and lots of ports manuals use them as well. In base and Xenocara, this will reduce mandoc -Tlint ERROR noise; in ports, it will improve rendering of many manuals.
2010-11-28To avoid FATAL errors, we have been parsing and ignoring the roffIngo Schwarze
requests .am, .ami, .am1, .dei, and .rm for a long time. Since ignoring them can (rarely) cause information loss and serious misformatting, throw an ERROR: NOT IMPLEMENTED when finding them. Implementing them would not be too difficult, but they are so rare in practice that i can find better use for my time right now. In this context, - Put the string "NOT IMPLEMENTED" into two other error messages as well, to distinguish them from those caused by broken input. - Print the string "unknown macro" once, not twice in the error message associated with MANDOCERR_MACRO, and begin printing the buffer at the point where the unknown macro really is, not at the start of line.
2010-11-28Parse and ignore the .ad, .hy, .nh, and .ne roff requests.Ingo Schwarze
Ignoring these can neither cause information loss nor serious formatting issues. As they are frequently used by pod2man(1), this considerably reduces ERROR noise from mandoc -Tlint for the Perl manuals.
2010-11-27Move our partial roff language manual to the right place,Ingo Schwarze
such that, after some more improvements, we will eventually be able to install it. jmc@ agrees with the plan.
2010-11-27Two related bugfixes:Ingo Schwarze
1) When using a user-defined string of length 0 as a macro, do not access memory before the start of the string (segfault). 2) When beginning to define a user-defined macro, initialize the string representing the macro to the empty string, not to the NULL pointer, such that, in case the macro turns out to not have any content, like in .de IX .. the macro will be defined and empty instead of undefined. This avoids large numbers of bogus mandoc ERROR messages about undefined macros (which are actually defined and empty), in particular in man(7) code generated from pod2man(1), for example in Perl and OpenSSL.
2010-11-27Document .de and .de1.Ingo Schwarze
Extend and improve .ds documentation. Improve .ig and .nr documentation. Add minimal explanations for .am, .ami, .am1, and .dei. Start improving the distinction of requests and macros. Add myself as an author.
2010-11-27Document .so.Ingo Schwarze
This file still needs lots of love before we can consider installing it.
2010-11-26Pass through ssh command-line flags and options when doing remote-remoteDamien Miller
transfers, e.g. to enable agent forwarding which is particularly useful in this case; bz#1837 ok dtucker@
2010-11-25Make .de1 a symnonym for .de, not .ig as it was before.Ingo Schwarze
The .de1 instructions is a GNU extension not found in traditional roff and not even in old groff, defined as "define a macro that will be executed with traditional roff compatibility mode switched off during macro execution". Since we ran into it in the wild, we have been parsing and ignoring it for a long time. Now that we have proper .de support, we can as well use the contents, even though we don't implement compatibility mode at all.
2010-11-25Support quoting of arguments passed to user-defined macros,Ingo Schwarze
such that arguments can contain blank characters. Also support escaping of quote characters by doubling them. For example, the argument "a""b c." resolves to: a"b c.
2010-11-25Implement the .de (define macro) roff instruction.Ingo Schwarze
This fixes various Xenocara manuals. Do not define your own macros in new manuals, though: this code exists purely to cope with existing and old stuff. Like in both traditional and GNU roff, the .de and .ds (define string) roff instructions share the same string table, so one can abuse strings as macros and vice versa. This implementation supports multi-line user-defined macros and user-defined macros taking up to 9 arguments. Project started near the end of p2k10, now mature for production, but there is still room for future improvements in various respects.
2010-11-25replace close() loop for fds 3->64 with closefrom();Damien Miller
ok markus deraadt dtucker
2010-11-24remove a debug() that pollutes stderr on client connecting to a serverDamien Miller
in debug mode (channel_close_fds is called transitively from the session code post-fork); bz#1719, ok dtucker
2010-11-23avoid NULL deref on receiving a channel request on an unknown or invalidDamien Miller
channel; report bz#1842 from jchadima AT redhat.com; ok dtucker@
2010-11-23use strict_modes already passed as function argument over referencingDamien Miller
global options.strict_modes
2010-11-22There is somewhere that WINDOW_HIDDEN is getting set when it shouldn'tNicholas Marriott
be and I can't find it, but the flag itself is a useless optimisation that only applies to automatic-resize windows, so just dispose of it entirely. Fixes problems reported by Nicholas Riley.
2010-11-21Refactor internals of private key loading and saving to work on memoryDamien Miller
buffers rather than directly on files. This will make a few things easier to do in the future; ok markus@
2010-11-21honour $TMPDIR for client xauth and ssh-agent temporary directories;Damien Miller
feedback and ok markus@
2010-11-20clean up cases of ;;Theo de Raadt
2010-11-19Make KERN_CPTIME return an avarage number of ticks across all CPUsMike Belopuhov
tedu agreed with an idea, tested by Luis Useche and me; ok deraadt
2010-11-18add IPQoS to the various -o lists, and zap some trailing whitespace;Jason McIntyre
2010-11-15NUL-terminate buffer in compiler_text() after realloc, not before.Todd C. Miller
Now that we have dynamically sized buffers there may not be room for the NUL until after realloc.
2010-11-15show more of the host, but be careful not to go over 80 cols; ok krw@Otto Moerbeek
2010-11-15libary -> library;Jason McIntyre
2010-11-15Show more window and pane flags in list-* output, and put layout on theNicholas Marriott
same line.
2010-11-14scandir() does not NULL-terminate the list of dirent structs so useTodd C. Miller
the returned count and set and end pointer instead. we no longer need to allocate a dummy array when diffing against a non-existent directory so eliminate slurpdir() and call scandir() directly. OK krw@
2010-11-14Terminate midi thru boxes trying to drain but that have noAlexandre Ratchov
outputs anymore, otherwise they can't be cleaned up by dev_close()
2010-11-14Update man page for update-environment.Nicholas Marriott
2010-11-14Don't allow last and active window to become the same - a very bad moveNicholas Marriott
when the active window is closed and freed. Reported by sthen@.
2010-11-13allow ssh and sshd to set arbitrary TOS/DSCP/QoS values instead ofDamien Miller
hardcoding lowdelay/throughput. bz#1733 patch from philipp AT redfish-solutions.com; ok markus@ deraadt@
2010-11-11Add XAUTHORITY to update-environment, requested by Andreas Kloeckner.Nicholas Marriott
2010-11-11Nuke dead assignments and a dead function, from Michael W BombardieriNicholas Marriott
using lint.
2010-11-11Flag to flush all key bindings from Rob Paisley.Nicholas Marriott
2010-11-11Declaration in header should be extern.Nicholas Marriott
2010-11-10use only libcrypto APIs that are retained with OPENSSL_NO_DEPRECATED.Damien Miller
these have been around for years by this time. ok markus
2010-11-08getdirentries(2) should be avoided outside of libc so use scandir(3)Todd C. Miller
instead. This makes slurpdir() just a thin wrapper around scandir(3). OK schwarze@
2010-11-07more EXIT STATUS bits; from Daniel DickmanJason McIntyre
2010-11-05Add experimental support for 24-bit arithmetic, meaning that fullAlexandre Ratchov
dynamic range of 24-bit hardware can be used. Offline processing like mixing and channel mapping is done with 24-bit precision too. Since most hardware and audio programs use 16-bit precision, 24-bit processing is a small waste of CPU time in many cases, so 24-bit processing is not desirable and this is disabled by default. Furthermore it's available on i386, amd64 and sparc64 only. To experiment with it: make COPTS="-DADATA_BITS=24"
2010-11-05unbreak compilation without DEBUG definedAlexandre Ratchov
2010-11-05Convert ulaw/alaw to native format (ie using ADATA_XXX defines) ratherAlexandre Ratchov
than s16 (using hardcoded constants). Currently s16 is the native format, so no behavior change.
2010-11-05Print relativ number of livelocks that happend between two systatClaudio Jeker
updates instead of showing absolut figures. Makes it easier to estimate the "livelockyness" of a system. OK dlg@
2010-11-05whitespace KNFDamien Miller
2010-11-04Replace ``short'' by a new ``adata_t'' typedef corresponding toAlexandre Ratchov
audio samples and cleanup ADATA_XXX macros. This allows easilly switching to 24 bit fixed point arithmetic by simply redefining the adata_t typedef to int and updating ADATA_XXX macros. No object change.
2010-11-04legacy.c is not used any longerAlexandre Ratchov
2010-11-04- fix a comma oopsieJason McIntyre
- Tn for "YACC" is silly - since ex(1) and vi(1) are the same page, let's not list them both in SEE ALSO