summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2024-04-02Oops, incorrect hex conversion spotted by claudio. While here try toTheo de Raadt
improve how it reads a bit better. Surprising the regression tests didn't spot this error, maybe it fails to roundtrip the values.
2024-04-02for parse_ipqos(), use strtonum() instead of mostly idiomatic strtoul(),Theo de Raadt
but wow it's so gross. ok djm
2024-04-02can shortcut by returning strtonum() value directly; ok djmTheo de Raadt
2024-04-02rewrite convtime() to use a isdigit-scanner and strtonum() instead ofTheo de Raadt
strange strtoul can might be fooled by garage characters. passes regress/usr.bin/ssh/unittests/misc ok djm
2024-04-02Remove unused ptr[3] char array in pkcs11_decode_hex.Claudio Jeker
OK deraadt@
2024-04-02Replace non-idiomatic strtoul(, 16) to parse a region of 2-characterTheo de Raadt
hex sequences with a low-level replacement designed just for the task. ok djm
2024-04-02Use strtonum() instead of severely non-idomatic strtoul()Theo de Raadt
In particular this will now reject trailing garbage, ie. '12garbage'. ok djm
2024-04-02sndiod: Migrate clients upon watchdog timeoutAlexandre Ratchov
When -F is used, fixes the difference in behavior between watchdog timer expiry and other errors.
2024-04-02sndiod: Fix confusion between the slot and ctlslot pointersAlexandre Ratchov
Fixes crash when the device is disconnected and the clients are not migrated to another device.
2024-04-01also create a relink kit for ssh-agent, since it is a long-running setgidTheo de Raadt
program carrying keys with some (not very powerful) communication channels. solution for testing the binary from dtucker. agreement from djm. Will add it into /etc/rc in a few days.
2024-04-01new-style relink kit for sshd. The old scheme created a Makefile byTheo de Raadt
concatenating two Makefiles and was incredibly fragile. In the new way a narrow-purposed install.sh script is created and shipped with the objects. A recently commited /etc/rc script understands these files.
2024-04-01Mention that port can be specified as 0 in some situations, so that theTheo de Raadt
system will allocate a port.
2024-03-30in OpenSSH private key format, correct type for subsequent privateDamien Miller
keys in blob. From Jakub Jelen via GHPR430
2024-03-30allow WAYLAND_DISPLAY to enable SSH_ASKPASSDamien Miller
From dkg via GHPR479; ok dtucker@
2024-03-29SYS_msyscall will go away soon. kdump does not need a special handlerTheo de Raadt
for it. ok tb
2024-03-29Back out tzset(3) change, it is not effective.Todd C. Miller
2024-03-29Call tzset() in main() so we don't need to check TZ repeatedly.Todd C. Miller
This has the greatest impact on makewhatis, which used to make thousands of calls to issetugid(2) via localtime(3) and strftime(3). Inspired by a different diff from miod@. OK miod@
2024-03-26Fix selection present check, reported by M Kelly.Nicholas Marriott
2024-03-26Import regenerated moduli.Darren Tucker
2024-03-26print amps and wattsDavid Gwynne
2024-03-25remove possibly bogus length checkOmar Polo
len is initially the line length, but then the two go out of sync. ok millert@
2024-03-25whois: use getline(3) instead of fgetln(3)Todd C. Miller
This simplifies the code and fixes a potential out of bounds read. OK op@ mbuhl@
2024-03-25Clean up create_digest()Theo Buehler
The ts code is its own kind of special. I only sent this diff out to hear beck squeal. This diff doesn't actually fix anything, apart from (maybe) appeasing some obscure static analyzer. It is decidedly less bad than a similar change in openssl's issue tracker. ok beck
2024-03-24whois: remove obsolete handle supportTodd C. Miller
Contact handles have been obsolete for some time now. The "!handle" InterNic syntax no longer works and core COCO handle queries seems to only return empty records. OK sthen@ job@
2024-03-22add "-V none" to prevent making any backupsJoshua Stein
from FreeBSD ok bluhm deraadt
2024-03-22aucat: Allow any device sample encoding.Alexandre Ratchov
If the device doesn't support the aucat internal encoding, then setup a conversion layer instead of failing. This allows aucat to be used for audio equipment testing/debugging without involving the full sndiod processing chain.
2024-03-22aucat: Add a bytes-per-sample argument to allcobuf()Alexandre Ratchov
No behavior change.
2024-03-21Fix white space. OK tobhe@Alexander Bluhm
2024-03-21Write padding character into the right position.Nicholas Marriott
2024-03-21Reduce escape-time default to 10 milliseconds, 500 is far too long forNicholas Marriott
modern terminals and networks. Case made by Kurtis Rader in GitHub issue 3844.
2024-03-21Add -M to always turn mouse on in a menu, GitHub issue 3779.Nicholas Marriott
2024-03-21Look for feature code 21 for DECSLRM and 28 for DECFRA in the deviceNicholas Marriott
attributes and also accept level 1 (there is no hardware with this but some emulators may use it). Pointed out by James Holderness.
2024-03-21Use -p for default paste-buffer command in buffer mode, it will only doNicholas Marriott
anything if the application asked for it. From Gregory Anders.
2024-03-21Do not notify window-layout-changed if the window is about to beNicholas Marriott
destroyed (since it may have been freed by the time the notify happens), from Romain Francoise in GitHub issue 3860.
2024-03-21Revert detach-client part of last, did not intend this to go in.Nicholas Marriott
2024-03-21Do not consider a selection present if it is empty, from Michael GrantNicholas Marriott
(GitHub issue 3869). Also a typo fix from GitHub issue 3877.
2024-03-20Remove some else statements in if () else if () chains that don't needClaudio Jeker
to be written this way. Makes the code more readable. OK tb@
2024-03-20aucat: Add generic channel mapping in place of -j and -c options.Alexandre Ratchov
The argument to the -m option specifies the source and destination channel ranges to be mapped. Compatibility is maintained: if -m is not used, the -c and -j options still work. Help and suggestions from Jan Stary <hans@stare.cz>, thanks.
2024-03-16add -S to usage();Jason McIntyre
2024-03-16whois: trim output after ">>> Last update of WHOIS database:"Todd C. Miller
Currently, whois(1) displays the full output it receives from the server. With this change, any text after a line starting with ">>> Last update of WHOIS database:" is dropped. This trims a lot of useless text that would otherwise cause the data you care about to scroll off the screen. From FreeBSD. OK deraadt@
2024-03-14Clarify how literal IPv6 addresses can be used in -J modeJob Snijders
OK djm@
2024-03-13Make the attach-session description clearer - do not mention creating aNicholas Marriott
client which is not important, explicitly say the session must exist, and mention new-session and new-session -A. Prompted by Theo.
2024-03-11openssh-9.7Damien Miller
2024-03-09avoid logging in signal handler by converting mainloop to ppoll()Damien Miller
bz3670, reported by Ben Hamilton; ok dtucker@
2024-03-08skip more whitespace, fixes find-principals on allowed_signersDamien Miller
files with blank lines; reported by Wiktor Kwapisiewicz
2024-03-06Check for the right flag to fix split-window -p, from Bryan Childs.Nicholas Marriott
2024-03-06fix memory leak in mux proxy mode when requesting forwarding.Damien Miller
found by RASU JSC, reported by Maks Mishin in GHPR#467
2024-03-06wrap a few PKCS#11-specific bits in ENABLE_PKCS11Damien Miller
2024-03-05whois: use whois.internic.net for -i optionTodd C. Miller
Revert revision 1.22 which changed -i to use whois.networksolutions.com. Network Solutions no longer runs InterNic so we must use whois.internic.net for looking up nameserver or registrar records. OK deraadt@
2024-03-04fix leak of CanonicalizePermittedCNAMEs on error path; spottedDamien Miller
by Coverity (CID 438039)