summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@
2016-03-17Add error checking for COLUMNS/LINES environment variables.Anthony J. Bentley
It would be better to replace all the complicated existing code with a simple idiom, and this is being worked on. But for the moment, preventing vi from crashing is worthwhile. ok jung@
2016-03-16notab mode is not enabled at the moment.Mark Lumsden
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2016-03-16style(9) includesmmcc
ok nicm@
2016-03-16Wrap a macro's args in parentheses. No binary change.mmcc
I'm discussing with deraadt@ whether it's a good idea to convert some of these to functions. The one changed by this commit probably isn't eligible because it defines only a for loop's condition, but many others in less(1) should probably be converted. ok millert@
2016-03-15'accomodate' -> 'accommodate' in comments.Kenneth R Westerback
Started by diff from Mical Mazurek.
2016-03-15 o clean up a little whitespace and formattingmmcc
o move some declarations out of hexdump.h o mark some declarations as __dead or static from Michal Mazurek, with input from and ok tb@
2016-03-15Replace two malloc casts that deraadt@ and I removed over the past yearmmcc
or two. Upstream wants to keep them for C++ support, and it isn't worth maintaining a larger diff. No binary change. Upstream commit: https://github.com/fanf2/unifdef/commit/87dfd91 I'll send more merging diffs to tech@ soon.
2016-03-14unbreak authentication using lone certificate keys in ssh-agent:Damien Miller
when attempting pubkey auth with a certificate, if no separate private key is found among the keys then try with the certificate key itself. bz#2550 reported by Peter Moody
2016-03-13remove an extra space before ^\ help message.martijn
Fixes allignment in viusage By Raf Czlonka
2016-03-13Recognize ipmi, vscsi, pvbus, udl, fuse, trunk, pipex and memrangenatano
ioctl requests.
2016-03-12Use 12 chars for pool name in "systat pool" to match vmstat -m. ok stefan@Stuart Henderson
2016-03-11un-un-vax;Jason McIntyre
this file has not been touched in nearly two years - putting this out as a test of whether to propose its removal;
2016-03-10sanitise characters destined for xauthDamien Miller
reported by github.com/tintinweb feedback and ok deraadt and markus
2016-03-09We are done providing support for the vax.Theo de Raadt
lots of agreement.
2016-03-08Actually enforce what was done on rev 1.11:mestre
if one of the parties is remote it needs to pledge for inet
2016-03-07refactor canohost.c: move functions that cache results closer to theDamien Miller
places that use them (authn and session code). After this, no state is cached in canohost.c feedback and ok markus@
2016-03-06Improve display of unknown and KTR_START recordsPhilip Guenther
request and ok naddy@
2016-03-06No more compat emulations, so remove ktrace EMUL records and the baggagePhilip Guenther
for generating and parsing them. ok mpi@ naddy@ millert@ deraadt@
2016-03-06Sync 'archive' magic from file 5.25. Various improvements includingStuart Henderson
epub detection which jirib at devio dot us reported as not working. nicm says "The only thing I see that we do not support is the indirect on the last line, I suggest just commenting it" (done).
2016-03-05Make the fd_set* passed to FD_ISSET() non-const: the non-macro version isPhilip Guenther
stricter (per POSIX, dang it)
2016-03-05If setlocale("en_US.UTF-8") succeeds, then don't do the check for UTF-8Nicholas Marriott
locale since if it isn't UTF-8 the system is broken anyway. If it fails, try "" and check for UTF-8 with nl_langinfo(CODESET) rather than wcwidth(). Based on a diff from schwarze@, nl_langinfo also suggested by stsp@.
2016-03-05safer pattern: if you're interested in one child, get THAT one, don't stealMarc Espie
children from other parts of the program. In that case, there's no reason to try to catch other process. 1/ they don't exist 2/ if they did, stealing their status would be bad. okay deraadt@
2016-03-05Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel.Nicholas Marriott
2016-03-05Although we always have en_US.UTF-8 on OpenBSD, some platforms do not,Nicholas Marriott
so fall back to setlocale(LC_CTYPE, ""). tmux requires a UTF-8 locale, so check with wcwidth() on a UTF-8 character after setlocale().
2016-03-04fix broken listDmitrij Czarkoff
2016-03-04fix typoDmitrij Czarkoff
2016-03-04fix ClientAliveInterval when a time-based RekeyLimit is set;Damien Miller
previously keepalive packets were not being sent. bz#2252 report and analysis by Christian Wittenhorst and Garrett Lee feedback and ok dtucker@
2016-03-03show-* and set-* need to handle a missing target.Nicholas Marriott
2016-03-03Accept clients as sessions in cmd_find_get_session.Nicholas Marriott
2016-03-03RGB colours shouldn't be mixed up with aixterm colours, return beforeNicholas Marriott
that happens when working out if they are supported.
2016-03-02Improve accuracy of reported transfer speeds by waiting for the ack fromDarren Tucker
the other end. Pointed out by mmcc@, ok deraadt@ markus@
2016-03-02Improve precision of progressmeter for sftp and scp by storing sub-secondDarren Tucker
timestamps. Pointed out by mmcc@, ok deraadt@ markus@
2016-03-02Handle wcwidth() and mbtowc() failures in better style and dropNicholas Marriott
characters where we can't find the width (wcwidth() fails) on input, the same as we drop invalid UTF-8. Suggested by schwarze@.
2016-03-02Limit x, y and b to 0x7ff for UTF-8 mouse input, suggested by schwarze@.Nicholas Marriott
2016-03-01Rectify line numbers for s/.// commands in ed-style diffs.natano
When diff encounters a line that consists of a single dot, it emits two dots instead, stops the current command and emits a substitute command to replace the double dot with a single one. Then it restarts the (original) command if necessary and inserts further lines. This is done because a single dot on a line does have special meaning in ed. (It stops text insertion.) Following issues are fixed by this commit. - The line number for the substitute command should be the number of the most recently inserted line. diff instead uses the number of the first inserted line of the current hunk. The first character of that line is removed when applying the diff, while the superfluous dot is not. - The line number of the restarted command is not adjusted for the number of lines already inserted, resulting in the reordering of lines.. - When there is a bare dot in the replacement text of a change command, too many lines are deleted, because a second change command is emitted. An append command should be emitted instead, because the target lines have already been removed by the first change command. tweaks and ok stefan@
2016-03-01Remove some more unused variables, and use RB_FOREACH_SAFE inNicholas Marriott
key_bindings_unref_table.
2016-03-01Redraw status on mode entry and exit.Nicholas Marriott
2016-03-01When a mouse drag is finished, fire a MouseUp key press, instead ofNicholas Marriott
doing the drag end in code. From Stephen Coakley.
2016-03-01Remove unused variables, from Michal Mazurek.Nicholas Marriott
2016-03-01Use system wcwidth() instead of carrying around UTF-8 width tables.Nicholas Marriott
2016-03-01Fix break-pane synopsis and some other tmux.1 bits.Nicholas Marriott
2016-03-01update currency exchange rates;Jason McIntyre
2016-03-01Update moduli file.Darren Tucker
2016-02-29Print ssize_t with %zd; ok deraadt@ mmcc@Jeremie Courreges-Anglas
2016-02-28rearrange DH public value tests to be a little more clearDamien Miller
rearrange DH private value generation to explain rationale more clearly and include an extra sanity check. ok deraadt
2016-02-28drop the support for Linux emulation; ok guenther@ visa@Christian Weisgerber
2016-02-28Support for running Linux binaries under emulation is going away.Christian Weisgerber
Remove "option COMPAT_LINUX" and everything directly tied to it from the kernel and the corresponding man page documentation. ok visa@ guenther@
2016-02-26there is no emulation "bsd", our default is "native"; ok deraadt@ millert@Christian Weisgerber