summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2021-02-12Do not care about the server socket closing if exiting anyway.Nicholas Marriott
2021-02-12sftp: add missing lsetstat@openssh.com documentationDamien Miller
patch from Mike Frysinger
2021-02-12factor SSH_AGENT_CONSTRAIN_EXTENSION parsing into its own functionDamien Miller
and remove an unused variable; ok dtucker@
2021-02-11Add a couple of helper functions, and flush imsgs on exit.Nicholas Marriott
2021-02-11O_TRUNC is needed in case file exists.Nicholas Marriott
2021-02-11Move file handling protocol stuff all into file.c so it can be reusedNicholas Marriott
more easily.
2021-02-10Use ~/.tmux.conf as an example rather than /etc/passwd, suggested byNicholas Marriott
deraadt@.
2021-02-10some spacing/grammar fixes from dave voutila;Jason McIntyre
2021-02-09Do not expand times and #() inside #().Nicholas Marriott
2021-02-08Add "pipe" variants of the "copy-pipe" commands which do not copy, fromNicholas Marriott
Christian Zangl.
2021-02-08Include "focused" in client flags, from Dan Aloni in GitHub issue 2558.Nicholas Marriott
2021-02-06In the end UTF-8 did not become a terminal feature, should not be listedNicholas Marriott
in man page.
2021-02-06Use message_set() instead of direct assignment to curr_messageTheo Buehler
to avoid leaking the current help text. from Anindya Mukherjee
2021-02-05disable autovol by default and set default volume to 127Joshua Stein
The previous behavior of automatically decreasing playback volume when new programs start playing can be achieved with '-w on'. ok ratchov, patrick
2021-02-05Send Unicode directional isolate characters around horizontal paneNicholas Marriott
borders if the terminal support UTF-8 and an extension terminfo(5) capability "Bidi" is present. On terminals with BiDi support (ie, VTE) this seems to be enough to display right-to-left text acceptably enough to be usable (with some caveats about the mouse position). Requested by and with help from Mahmoud Elagdar in GitHub issue 2425.
2021-02-05Add a -S flag to new-window to make it select the existing window if oneNicholas Marriott
with the given name already exists rather than failing with an error. Also add a format to check if a window or session name exists which allows the same with other commands. Requested by and discussed with kn@.
2021-02-05Remove debug message from sigchld handler. While this works on OpenBSDDarren Tucker
it can cause problems on other platforms. From kircherlike at outlook.com via bz#3259, ok djm@
2021-02-04Implement the nc(1) -D socket debug option also in tcpbench(1).Alexander Bluhm
This allows to analyse TCP connections. OK claudio@
2021-02-04Redraw status line and borders on pane enable/disable, GitHub issue 2554.Nicholas Marriott
2021-02-04Unconditionally allocate a buffer big enough to hold a structanton
usb_ctl_report. Limiting the size of the buffer to the size of the requested report can cause the ioctl(USB_GET_REPORT) command to fail with EFAULT as the kernel will always copy sizeof(struct usb_ctl_report) bytes from the address passed from user space. That is when the given address + sizeof(struct usb_ctl_report) crosses a page boundary and the adjacent page is not mapped. ok mglocker@
2021-02-03remove ancient malloc ? realloc dance. always use realloc.Theo de Raadt
ok millert tb
2021-02-02whitespaceDamien Miller
2021-02-02fix memleaks in private key deserialisation; enforce more consistencyDamien Miller
between redundant fields in private key certificate and private key body; ok markus@
2021-02-02memleak on error path; ok markus@Damien Miller
2021-02-02add -Tu to usage();Jason McIntyre
2021-02-02Fix popup mouse position.Nicholas Marriott
2021-02-02introduce support for sending the If-Modified-Since header whileRobert Nagy
fetching over http(s) and use the timestamps from the remote server's Last-Modified header if available when saving local files this makes it possible to mirror files better with ftp(1) the new timestamp behaviour can be disabled with the new '-u' flag ok sthen@, input from sthen@ and gnezdo@
2021-02-02Fix use-after-free in dev_abort()Alexandre Ratchov
Fixes crash that can occur when an usb device is unplugged, found by edd@
2021-02-02article fixes; from eddie yousephJason McIntyre
2021-02-01Add a no-detached choice to detach-on-destroy which detaches only ifNicholas Marriott
there are no other detached sessions to switch to, from Sencer Selcuk in GitHub issue 2553.
2021-02-01update currency exchange rates;Jason McIntyre
2021-02-01some article fixes; from eddie youseph and grepJason McIntyre
2021-01-31more strictly enforce KEX state-machine by banning packet typesDamien Miller
once they are received. Fixes memleak caused by duplicate SSH2_MSG_KEX_DH_GEX_REQUEST (spotted by portable OpenSSH kex_fuzz via oss-fuzz #30078). ok markus@
2021-01-31replace fgetln(3) with getline(3) in sedChristian Weisgerber
Partly from Johann Oskarsson for Illumos/FreeBSD. ok millert@
2021-01-31Set linesize returned by getline to zero when freeing and NULLing theDarren Tucker
returned string. OpenBSD's getline handles this just fine, but some implementations used by -portable do not. ok djm@
2021-01-30Fix delay parsing by stealing from strtonum and returning a proper error toMartijn van Duren
the user when an invalid value is entered instead of silently falling back to the default 5s. While here I also capped the upper limit to UINT32_MAX / 1000000 to prevent useconds_t overflow. This hard limits us to 4294s, instead of the current soft limit which just make systat go berserk if you go over it. Reported and original diff by Nick Gasson nick <at> nickg <dot> me <dot> uk OK cheloha@ Tweaks and OK bluhm@
2021-01-29Make audio clients use struct opt to reach the deviceAlexandre Ratchov
No behavior change. This decreases the number of explicit references to the dev structure
2021-01-29Make control clients use struct opt to reach the deviceAlexandre Ratchov
No behavior change. This decreases the number of explicit references to the dev structure.
2021-01-29Rename ctlslot->mask to ctlslot->self to match the rest of the codeAlexandre Ratchov
No binary change.
2021-01-29Order opt_list in opt_new() call order, limit items to OPT_NMAXAlexandre Ratchov
No behavior change, except for improved debug printfs.
2021-01-29Move the options list out of the device structureAlexandre Ratchov
No behavior change. Later this will ease applying the configuration of one device to another by "just" swapping pointers.
2021-01-29Move the control client state out of the device structureAlexandre Ratchov
No behavior change. Later this will ease changing the controlled device by "just" swapping pointers.
2021-01-29Move the audio clients state out of the device structureAlexandre Ratchov
No behavior change. Later this will ease moving clients from one device to another by "just" swapping pointers.
2021-01-29Trim output overwritten by later text or clears completely rather thanNicholas Marriott
only in a few cases. This means we can better track when a line should wrap. GitHub issue 2537.
2021-01-29fix the values of enum sock_typeDamien Miller
2021-01-29give typedef'd struct a struct name; makes the fuzzer I'm writing a bitDamien Miller
easier
2021-01-28When an audio device is disconnected, drop MIDI clients controlling itAlexandre Ratchov
2021-01-28Dont attempt to drain disconnected clientsAlexandre Ratchov
Clients are always drained before they disconnect, so this change affects programs that die unexpectedly or loose thier network connection. Besides the bad style, this change fixes a theoretical bug when the disconnected client slot could be recycled and given to another client while it's being drained
2021-01-28In slot_xxx(), store dev pointer in local variableAlexandre Ratchov
This removes many redundant dereferences to obtain the dev pointer from the slot stucture and makes the source slightly more readable. No behavior change.
2021-01-28Use everywhere the same pattern to handle fractional clock ticksAlexandre Ratchov
No behavior change; this change is only to make the maths easier to proofread