summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2023-01-23Too many \s in example, GitHub issue 3445.Nicholas Marriott
2023-01-20Add a flag to display-menu to select the manu item chosen first, GitHubNicholas Marriott
issue 3442.
2023-01-18delete useless dependencyTheo de Raadt
2023-01-18Create and install sshd random relink kit.Theo de Raadt
../Makefile.inc and Makfile are concatenated for reuse, which hopefully won't be too fragile, we'll see if we need a different approach. The resulting sshd binary is tested with the new sshd -V option before installation. As the binary layout is now semi-unknown (meaning relative, fixed, and gadget offsets are not precisely known), change the filesystem permissions to 511 to prevent what I call "logged in BROP". I have ideas for improving this further but this is a first step ok djm
2023-01-18tweak previous; ok djmJason McIntyre
2023-01-18when restoring non-blocking mode to stdio fds, restore exactlyDamien Miller
the flags that ssh started with and don't just clobber them with zero, as this could also remove the append flag from the set; bz3523; ok dtucker@
2023-01-18Add a -V (version) option to sshd like the ssh client has.Todd C. Miller
OK markus@ deraadt@
2023-01-17For "ssh -V" always exit 0, there is no need to check opt again.Todd C. Miller
This was missed when the fallthrough in the switch case above it was removed. OK deraadt@
2023-01-17Arguments may contain more than one variable assignmentKlemens Nanni
`make FOO=1 BAR=2 ...' works as expected and lots of things wouldn't work if make only accepted a single assignment, as currently documented. Fix SYNOPSIS and usage to match reality and POSIX spec (thanks jmc). OK jmc
2023-01-17Support -1 without -N for list-keys.Nicholas Marriott
2023-01-17Add a sshd_config UnusedConnectionTimeout option to terminateDamien Miller
client connections that have no open channels for some length of time. This complements the recently-added ChannelTimeout option that terminates inactive channels after a timeout. ok markus@
2023-01-17Update palette when moving a pane, GitHub issue 3437.Nicholas Marriott
2023-01-16Mark keys sent by command and skip paste handling for them.Nicholas Marriott
2023-01-16we spent far too long debugging a weird go library problem (incorrectTheo de Raadt
arguments to mmap) because it was using syscall(2) and that callpath is invisible in ktrace. make it visible, it will now show "(via syscall)" and such. ok guenther
2023-01-15update OpenSSH's Ed25519 code to the last version of SUPERCOP (20221122)Damien Miller
and change the import approach to the same one we use for Streamlined NTRUPrime: use a shell script to extract the bits we need from SUPERCOP, make some minor adjustments and squish them all into a single file. ok tb@ tobhe@
2023-01-15fix text error; from jan staryJason McIntyre
2023-01-13Use extended header format for .wav files.Alexandre Ratchov
According to Microsoft docs, it is needed if bits > 16 or if there are more than 2 channels, which aucat supports and is the defaut. Fixes errors reported by audio/sox port when trying to play .wav files generated by aucat. Reported by John Rigg <obsd at jrigg.co.uk> and others on misc@
2023-01-13fix double phrase in previous;Jason McIntyre
2023-01-13timeout(1): sig_atomic_t variables must also be 'volatile'; ok job@Scott Soule Cheloha
2023-01-13Document "UserKnownHostsFile none". ok djm@Darren Tucker
2023-01-13Add a "Host" line to the output of ssh -G showing the original host arg.Darren Tucker
Inspired by patch from vincent at bernat.ch via bz#3343, ok djm@
2023-01-13avoid printf("%s", NULL) if using ssh -oUserKnownHostsFile=noneDamien Miller
and a hostkey in one of the system known hosts file changes; ok dtucker@
2023-01-12Have tmux recognise pasted texts wrapped in bracket paste sequences,Nicholas Marriott
rather than only forwarding them to the program inside. From Andrew Onyshchuk in GitHub issue 3431.
2023-01-12diff from sobrado to use a full argument name for -s: after some discussionJason McIntyre
we used "signal", as per pkill/pgrep; also lift the descriptive text from kill.1 to clarify that both signal name and number are accepted; ok sobrado job
2023-01-11clamp the minimum buffer lengths and number of inflight requests tooDamien Miller
2023-01-11ignore bogus upload/download buffer lengths in the limits extensionDamien Miller
2023-01-11remove whitespace at EOL from code extracted from SUPERCOPDamien Miller
2023-01-10Switch scp from using pipes to a socketpair for communication withTodd C. Miller
it's ssh sub-processes. We no longer need to reserve two descriptors to ensure that we don't end up using fd 0-2 unexpectedly, that is handled by sanitise_stdfd() in main(). Based on an original diff from djm@. OK deraadt@ djm@
2023-01-10oops, fix a bad edit in previous;Jason McIntyre
2023-01-10Fix device name in the MIDI control sectionAlexandre Ratchov
For MMC to work, the MIDI sequencer must send MMC to subdevices registered with -tslave. From Dirk-Wilhelm Peters <peters at schwertfisch.de>, thanks.
2023-01-10Add short options for --foreground and --preserve-statusJob Snijders
Align with upcoming POSIX spec: https://www.austingroupbugs.net/view.php?id=1586 OK jmc@
2023-01-09shorten SYNOPSIS from three versions to two (me) then one (ratchov),Jason McIntyre
plus all the cleanup that goes with; ok ratchov
2023-01-09Fix behaviour with \007 (used the wrong tree for last change).Nicholas Marriott
2023-01-09Accept \007 as terminator to OSC 10 or 11.Nicholas Marriott
2023-01-08Fix parsing of optional arguments so that and accept a - starting anNicholas Marriott
argument.
2023-01-08Have client return 1 if process is interrupted to an input pane.Nicholas Marriott
2023-01-08Restore code to handle wcwidth failure so that unknown codepoints stillNicholas Marriott
do the most likely right thing. GitHub issue 3427, patch based on an diff from Jesse Luehrs in GitHub issue 3003.
2023-01-08Quotes are now required in select-layout example.Nicholas Marriott
2023-01-08- tweak the text relating to -wJason McIntyre
- sync usage() and SYNOPSIS ok ratchov
2023-01-08Add -w option to display variables periodicallyAlexandre Ratchov
The purpose of -w is to monitor underruns without triggering long kernel code-paths (ex. fork and exec of new audioctl process) that may cause additional underruns than the ones being monitored. ok chehola, edd
2023-01-07Add argument and return support for {get,set}thrname()Philip Guenther
2023-01-07Add {get,set}thrname(2) for putting thread names in the kernel andPhilip Guenther
exposed in a new field returned by sysctl(KERN_PROC). Update pthread_{get,set}_name_np(3) to use the syscalls. Show them, when set, in ps -H and top -H output. libc and libpthread minor bumps ok mpi@, mvs@, deraadt@
2023-01-06tweak previous; ok djmJason McIntyre
2023-01-06If a pane is killed, cancel reading from the file. GitHub issue 3422.Nicholas Marriott
2023-01-06Implement channel inactivity timeoutsDamien Miller
This adds a sshd_config ChannelTimeouts directive that allows channels that have not seen traffic in a configurable interval to be automatically closed. Different timeouts may be applied to session, X11, agent and TCP forwarding channels. Note: this only affects channels over an opened SSH connection and not the connection itself. Most clients close the connection when their channels go away, with a notable exception being ssh(1) in multiplexing mode. ok markus dtucker
2023-01-06Add channel_set_xtype()Damien Miller
This sets an "extended" channel type after channel creation (e.g. "session:subsystem:sftp") that will be used for setting channel inactivity timeouts. ok markus dtucker
2023-01-06tweak channel ctype namesDamien Miller
These are now used by sshd_config:ChannelTimeouts to specify timeouts by channel type, so force them all to use a similar format without whitespace. ok dtucker markus
2023-01-06Add channel_force_close()Damien Miller
This will forcibly close an open channel by simulating read/write errors, draining the IO buffers and calling the detach function. Previously the detach function was only ever called during channel garbage collection, but there was no way to signal the user of a channel (e.g. session.c) that its channel was being closed deliberately (vs. by the usual state-machine logic). So this adds an extra "force" argument to the channel cleanup callback to indicate this condition. ok markus dtucker
2023-01-06replace manual poll/ppoll timeout math with ptimeout APIDamien Miller
feedback markus / ok markus dtucker
2023-01-06add ptimeout API for keeping track of poll/ppoll timeouts;Damien Miller
ok dtucker markus