summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2023-03-03Check return values of dup2. Spotted by Coverity, ok djm@Darren Tucker
2023-03-03Use time_t for x11_refuse_time timeout. We need SSH_TIME_T_MAX forDarren Tucker
this, so move from misc.c to misc.h so it's available. Fixes a Coverity warning for 64bit time_t safety, ok djm@
2023-03-03Check return value from fctnl and warn on failure. Spotted by Coverity,Darren Tucker
ok djm@
2023-03-02Ensure we always call fclose when writing checkpoints. In the case ofDarren Tucker
an fprintf failure we would not call fclose which would leak the FILE pointer. While we're there, try to clean up the temp file on failure. Spotted by Coverity, ok djm@
2023-02-28fatal out if allocating banner string fails to avoid potential nullDarren Tucker
deref later in sscanf. Spotted by Coverity, ok deraadt@
2023-02-28Explicitly ignore return from fchmod similar to other calls toDarren Tucker
prevent warning.
2023-02-27Plug mem leak on globbed ls error path. Spotted by Coverity, ok deraadt@Darren Tucker
2023-02-23openssl speed: avoid bad pluralTheo Buehler
Remedy a case of twitching eyes caused by seeing "Doing ... rsa's for 10s". If this breaks someone's script, so be it. ok jsing sthen
2023-02-22fix progressmeter corruption on wide displays; bz3534Damien Miller
feedback/ok dtucker@
2023-02-21for process kills due to execve from non-pinned syscall address, exportTheo de Raadt
a new AEXECVE bit to acct(4), and print it in lastcomm(8) ok bluhm
2023-02-21fseek to end of known_hosts before writing to it. POSIX and ANSI CDarren Tucker
require that applications call fseek or similar between read and writing to a RW file. OpenBSD doesn't enforce this, but some (System V derived) platforms need this to prevent it from writing a spurious extra byte (in this case, a newline). ok djm@ deraadt@
2023-02-17KTRC_CODE__SYSCALL is never set anymore, because __syscall() is gone.Theo de Raadt
2023-02-17Remove redundant assignment; ok millert@Miod Vallat
2023-02-17Remove unused variables; ok millert@Miod Vallat
2023-02-17Remove now-unused compat bit SSH_BUG_RSASIGMD5. The code to set thisDarren Tucker
was removed in OpenSSH 7.7 when support for SSH implementations dating back to before RFC standardization were removed. "burn it all" djm@
2023-02-17Remove now-unused compat bit SSH_BUG_BIGENDIANAES. This wasDarren Tucker
previously set for OpenSSH 2.3 (released in 2000) but this check was removed in OpenSSH 7.7 (2018). ok djm@ deraadt@
2023-02-16Remove SSH_BUG_PASSWORDPAD compat bit since it's no longer used.Darren Tucker
ok markus@
2023-02-16Remove SSH_BUG_IGNOREMSG compat flag since it's only applicable to SSH1Darren Tucker
and thus no longer used. ok markus@ "kill it with fire" djm@
2023-02-14Fix handling of port numbers in rsync://host[:port]/module URLsJob Snijders
With and OK tb@
2023-02-10Fix cursor position after zero width space, GitHub issue 3469.Nicholas Marriott
2023-02-10space between macro and punctuation;Jason McIntyre
sort usage();
2023-02-10space between macro and punctuation;Jason McIntyre
2023-02-10sort SYNOPSIS;Jason McIntyre
2023-02-10let ssh-keygen and ssh-keyscan accept -Ohashalg=sha1|sha256 whenDamien Miller
outputting SSHFP fingerprints to allow algorithm selection. bz3493 ok dtucker@
2023-02-10add a `sshd -G` option that parses and prints the effectiveDamien Miller
configuration without attempting to load private keys and perform other checks. This allows usage of the option before keys have been generated. bz3460 feedback/ok dtucker@
2023-02-10make `ssh -Q CASignatureAlgorithms` work as the manpage says it shouldDamien Miller
bz3532
2023-02-09Ensure that there is a terminating newline when adding a new entryDarren Tucker
to known_hosts. bz#3529, with git+openssh at limpsquid.nl, ok deraadt@ markus@
2023-02-08Use _nc_tparm_analyze() instead of trying to do it ourselves in process().Todd C. Miller
This fixes tput when used with a capability that uses push/pop. OK gkoehler@
2023-02-08finger/mail: two trivial functions were missed in earlier ansi passesTheo Buehler
2023-02-08telnet: fix prototypes for two signal handlers to make clang 15 happyTheo Buehler
2023-02-08sed: add missing void to avoid -Wstrict-prototype with clang 15Theo Buehler
2023-02-08openssl(1) pkcs7 avoid crash on malformed filesTheo Buehler
When printing certificates or CRLs, check signed and signedAndEnveloped before dereferencing them. Prevents crash on inspecting malformed PKCS7 files. ok jsing
2023-02-07Remove old buffer when renaming rather than complaining, GitHub issueNicholas Marriott
3467 from Jean-Philippe Paradis.
2023-02-07Add an L modifier like P, W, S to loop over clients. Also fix some longNicholas Marriott
lines in tmux(1).
2023-02-06Add -f to list-clients like the other list commands, from Andy Walker inNicholas Marriott
GitHub issue 3449.
2023-02-05Do not allow multiple line separators in a row.Nicholas Marriott
2023-02-05Extend display-message to work for control clients. GitHub issue 3449.Nicholas Marriott
2023-02-03Fix tput when compiled with clang-15 -O2Theo Buehler
For some reason clang-15 doesn't like passing the uninitialized array of pointers nargv[] to the vararg function tparm(). With -O2 it optimizes the for loop preceding the tparm() call strangely, with the result that the argv[i] == NULL error is hit in most real-world usage. This broke naddy's fancy shell prompt among other things. Initialize nargv[] to appease the insatiable undefined behavior exploiter. ok jca millert
2023-02-03Add ASPA to Looking GlassJob Snijders
OK claudio@
2023-02-02openssh-9.2Damien Miller
2023-02-02fix double-free caused by compat_kex_proposal(); bz3522Damien Miller
by dtucker@, ok me
2023-02-02Add a missing error message which causes an invalid layout name to crash.Nicholas Marriott
2023-02-02Tweak note for D key binding, from Clark Wang.Nicholas Marriott
2023-02-01Print the pid in lastcomm(1) output for post mortem analysis. PutAlexander Bluhm
it in brackets after the command name, like syslogd does it in log files. A while ago the process id was added to process accounting in the kernel, so no ABI break this time. OK deraadt@
2023-01-31Fix a typo in a comment and spacingAlexandre Ratchov
from weerd@
2023-01-29Fix ^^D and 0^D description; pointed out by Tomas Rippl; ok jmc@Otto Moerbeek
2023-01-25Fix CVE-2023-24056, unbounded variable expansion in pkg-config.Todd C. Miller
We now die with an error when trying to expand a variable that is already longer than 64K. This was never a buffer overflow in our pkg-config, but rather an unbounded memory allocation that would eventually run up against resource limits. OK sthen@ jasper@
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