summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-05-31Need time.h.Nicholas Marriott
2017-05-31Some applications like vi(1) and tmux until 10 minutes or so ago, do notNicholas Marriott
redraw on SIGWINCH if the size returns to the original size between the original SIGWINCH and when they get around to calling TIOCGWINSZ. So use the existing resize timer to introduce a small delay between the two resizes.
2017-05-31make sure we don't pass a NULL string to vfprintf (triggered by theMarkus Friedl
principals-command regress test); ok bluhm
2017-05-31It is not OK to ignore SIGWINCH if SIOCGWINSZ reports the size hasNicholas Marriott
unchanged, because it may have changed and changed back in the time between us getting the signal and calling ioctl(). Always redraw when we see SIGWINCH.
2017-05-31Because we defer actually resizing applications (calling TIOCSWINSZ)Nicholas Marriott
until the end of the server loop, tmux may have gone through several internal resizes in between. This can be a problem if the final size is the same as the initial size (what the application things it currently is), because the application may choose not to redraw, assuming the screen state is unchanged, when in fact tmux has thrown away parts of the screen, assuming the application will redraw them. To avoid this, do an extra resize if the new size is the same size as the initial size. This should force the application to redraw when tmux needs it to, while retaining the benefits of deferring (so we now resize at most two times instead of at most one - and only two very rarely). Fixes a problem with break-pane and zoomed panes reported by Michal Mazurek.
2017-05-31use SO_ZEROIZE for privsep communication (if available)Markus Friedl
2017-05-31Switch to recallocarray() for a few operations. Both growth and shrinkageTheo de Raadt
are handled safely, and there also is no need for preallocation dances. Future changes in this area will be less error prone. Review and one bug found by markus
2017-05-31These shutdown() SHUT_RDWR are not needed before close()Theo de Raadt
ok djm markus claudio
2017-05-31Look for setrgbf and setrgbb terminfo extensions for RGB colour. This isNicholas Marriott
the most reasonable of the various (some bizarre) suggestions for capabilities.
2017-05-31clear session keys from memory; ok djm@Markus Friedl
2017-05-31we can just use void for functions that always return 0.Ted Unangst
from Michael W. Bombardieri
2017-05-31remove now obsolete ctx from ssh_dispatch_run; ok djm@Markus Friedl
2017-05-31use the ssh_dispatch_run_fatal variantMarkus Friedl
2017-05-31another ctx => ssh conversion (in GSSAPI code)Damien Miller
2017-05-31spell out that custom options/extensions should follow the usual SSHDamien Miller
naming rules, e.g. "extension@example.com"
2017-05-31one more void *ctx => struct ssh *ssh conversionDamien Miller
2017-05-31close fd on an exit pathJonathan Gray
2017-05-31one more void *ctx => struct ssh *ssh conversionDamien Miller
2017-05-31fix possible OOB strlen() in SOCKS4A hostname parsing; ok markus@Damien Miller
2017-05-30Rewrite of choose mode, both to simplify and tidy the code and to addNicholas Marriott
some modern features. Now the common code is in mode-tree.c, which provides an API used by the three modes now separated into window-{buffer,client,tree}.c. Buffer mode shows buffers, client mode clients and tree mode a tree of sessions, windows and panes. Each mode has a common set of key bindings plus a few that are specific to the mode. Other changes are: - each mode has a preview pane: for buffers this is the buffer content (very useful), for others it is a preview of the pane; - items may be sorted in different ways ('O' key); - multiple items may be tagged and an operation applied to all of them (for example, to delete multiple buffers at once); - in tree mode a command may be run on the selected item (session, window, pane) or on tagged items (key ':'); - displayed items may be filtered in tree mode by using a format (this is used to implement find-window) (key 'f'); - the custom format (-F) for the display is no longer available; - shortcut keys change from 0-9, a-z, A-Z which was always a bit weird with keys used for other uses to 0-9, M-a to M-z. Now that the code is simpler, other improvements will come later. Primary key bindings for each mode are documented under the commands in the man page (choose-buffer, choose-client, choose-tree). Parts written by Thomas Adam.
2017-05-30tweak previous;Jason McIntyre
2017-05-30tweak previous;Jason McIntyre
2017-05-30STYLE message about useless macros we don't want (Bt Tn Ud);Ingo Schwarze
not a WARNING because they don't endanger portability
2017-05-30Add RemoteCommand option to specify a command in the ssh configAlexander Bluhm
file instead of giving it on the client's command line. This command will be executed on the remote host. The feature allows to automate tasks using ssh config. OK markus@
2017-05-30fix formatting of intermediate punctuation in .LkIngo Schwarze
2017-05-30Macro argument quoting does not prevent recognition of punctuationIngo Schwarze
and of called macros. This bug affects almost all macros, and fixing it simplifies the code. It is amazing that the bogus ARGS_QWORD feature got implemented in the first place, and then carrier along for more than eight years without anybody ever noticing that it was pointless. Reported by Leah Neukirchen <leah at vuxu dot org>, found on Void Linux.
2017-05-30usage and order tweaks from jmcTed Unangst
2017-05-30stop reacharound from w(1) to ps(1); no functional change;Ingo Schwarze
diff from bcallah@; OK tedu@ deraadt@
2017-05-30id -R: make current rdomain more easily accessible to the shellTed Unangst
ok benno deraadt
2017-05-30switch auth2 to ssh_dispatch API; ok djm@Markus Friedl
2017-05-30switch auth2-none.c to modern APIs; ok djm@Markus Friedl
2017-05-30switch auth2-passwd.c to modern APIs; ok djm@Markus Friedl
2017-05-30switch auth2-hostbased.c to modern APIs; ok djm@Markus Friedl
2017-05-30protocol handlers all get struct ssh passed; ok djm@Markus Friedl
2017-05-30ssh: pass struct ssh to auth functions, too; ok djm@Markus Friedl
2017-05-30sshd: pass struct ssh to auth functions; ok djm@Markus Friedl
2017-05-30remove unused wrapper functions from key.[ch]; ok djm@Markus Friedl
2017-05-30sshkey_new() might return NULL (pkcs#11 code only); ok djm@Markus Friedl
2017-05-30switch sshconnect.c to modern APIs; ok djm@Markus Friedl
2017-05-30switch auth2-pubkey.c to modern APIs; with & ok djm@Markus Friedl
2017-05-30switch from Key typedef with struct sshkey; ok djm@Markus Friedl
2017-05-30remove ssh1 references; ok djm@Markus Friedl
2017-05-30revise sshkey_load_public(): remove ssh1 related comments, remove extraMarkus Friedl
open()/close() on keyfile, prevent leak of 'pub' if 'keyp' is NULL, replace strlcpy+cat with asprintf; ok djm@
2017-05-30Preserve search string when entering prompt again.Nicholas Marriott
2017-05-30The is open-file command is actually called find-file. Typo pointed outTheo Buehler
by "Choose a display name <thelocals_job_applicant protonmail com>".
2017-05-30fix -Wshadow warnings.Florian Obser
Found by bcallah, thanks!
2017-05-30Unbreak previous for git diffs that do not have the a/ prefix.Florian Obser
Found the hard way be me, OK tedu
2017-05-30avoid some shadow warnings. from Brian CallahanTed Unangst
2017-05-30fix a shadow warning. from Brian CallahanTed Unangst
2017-05-30rename variable to avoid shadow. from Brian CallahanTed Unangst