summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2023-05-10Implement TCP send offloading, for now in software only. This isAlexander Bluhm
meant as a fallback if network hardware does not support TSO. Driver support is still work in progress. TCP output generates large packets. In IP output the packet is chopped to TCP maximum segment size. This reduces the CPU cycles used by pf. The regular output could be assisted by hardware later, but pf route-to and IPsec needs the software fallback in general. For performance comparison or to workaround possible bugs, sysctl net.inet.tcp.tso=0 disables the feature. netstat -s -p tcp shows TSO counter with chopped and generated packets. based on work from jan@ tested by jmc@ jan@ Hrvoje Popovski OK jan@ claudio@
2023-05-10Remove now-unused prototypes for ssh1 RSA functions. From lengyijun viaDarren Tucker
github PR#396.
2023-05-08Prevent signed integer overflowTobias Stoeckmann
A signed integer overflow could occur after INT_MAX bad password attempts. Check for unlimited tries first and then increment the counter. Also consider INT_MAX to be a valid upper limit. ok millert@
2023-05-08Improve error handlingTobias Stoeckmann
Close pipe file descriptors if fork fails. Also do not parse exit status of child if waitpid fails. with input by and ok millert@
2023-05-08Reorder struct grid_cell_entryTheo Buehler
On aarch64 with llvm 15, the new -Wunaligned-access emits noise on every one of tmux's source files. This avoids this warning by moving a u_char to the end of the struct. This does not change the size of the struct on any architecture. ok nicm
2023-05-05Reinstate X9.31 padding mode support in rsautlTheo Buehler
2023-05-04Straightforward conversion form K&R to ANSI function definitionsTheo Buehler
2023-05-03Improve setenv markupKlemens Nanni
- braces are not commands, use 'Brq' - markup variable and value each, leave = (like mdoc(7) 'Ns' example)
2023-05-02Switch K&R function definition to ANSI to make clang 15 happierTheo Buehler
2023-05-01Import regenerated moduli.Darren Tucker
2023-04-30adjust ftruncate() logic to handle servers that reorder requests.Damien Miller
sftp/scp will ftruncate the destination file after a transfer completes, to deal with the case where a longer destination file already existed. We tracked the highest contiguous block transferred to deal with this case, but our naive tracking doesn't deal with servers that reorder requests - a misfeature strictly permitted by the protocol but seldom implemented. Adjust the logic to ftruncate() at the highest absolute block received when the transfer is successful. feedback deraadt@ ok markus@ prompted by https://github.com/openssh/openssh-portable/commit/9b733#commitcomment-110679778
2023-04-29as noticed by sdk@, a package with an exact numbers of 64K chunks wouldMarc Espie
produce a spurious error (so 1 chance in 2^26) It's like read/write: we need to recognize 0 as EOF and not try to checksum a non-existing block. while there, also make sure that we got all the signed blocks at EOF before exit(0) Note that none of those two bugs affect the actual security of signed packages: the basic assertion that only signed data gets written through the pipe is still 100% valid ! but it's a good idea to not emit spurious messages for valid files, and also to recognize truncated files ! okay tb@ (thanks a lot)
2023-04-28Make LLVM 15 happier by changing from K&R to ANSI prototypesTheo Buehler
2023-04-28Do not rewrite MAN_LP and MAN_P to MAN_PP because doing that causesIngo Schwarze
confusing warning messages complaining about macros that don't even appear in the input file. As a welcome side effect, this also shortens the code... Fixing a minibug reported by Alejandro Colomar <alx dot manpages at gmail dot com>.
2023-04-28Implement --size-only and --ignore-timesClaudio Jeker
Flags are passed to the remote system but --size-only is only set if local system is sender since this is the behaviour of rsync. Initial diff from Martin Cracauer but mostly reimplemented and extended by myself. OK kn@
2023-04-28fix lfindent (newline-and-indent) comment and description in the man pageOmar Polo
for a while it has used only spaces when no-tab-mode is enabled and respected the current buffer tab width.
2023-04-28mark up all commands in the man pageOmar Polo
2023-04-28Add options to change the confirm key and default behaviour ofNicholas Marriott
confirm-before. From Elias Assaf in GitHub issue 3548; prompted by an earlier change from Yutaro Yoshii in GitHub issue 3496.
2023-04-28Do not fatal if tparm fails, instead just log it (not working sequencesNicholas Marriott
are better than exiting).
2023-04-27sort options;Jason McIntyre
2023-04-27Implement -V as an alias to --version.Claudio Jeker
From Martin Cracauer OK kn@
2023-04-26Check for ProxyJump=none in CanonicalizeHostname logic.Damien Miller
Previously ssh would incorrectly refuse to canonicalise the hostname if ProxyJump was explicitly set to "none" when CanonicalizeHostname=yes bz3567; ok dtucker
2023-04-25Remove the nseq commandTheo Buehler
2023-04-25mark up `mode' in -f descriptionOmar Polo
2023-04-25Tidy tparm wrapper functions to have more obvious names and check tparmNicholas Marriott
return value.
2023-04-25Invalidate cached tty state after changing features since they mayNicholas Marriott
change what the terminal can do and need mouse sequences or similar to be sent again, GitHub issue 3513.
2023-04-25document that prefix-region with a prefix argument prompts for the stringOmar Polo
2023-04-22Document the change in default to comma plus space but leave out theTheo Buehler
compat nonsense
2023-04-22Fix UTF-8 issuer printingTheo Buehler
If no field separator is specified, default to using the comma plus space separation, unless the compat flag is set. Fixes an a bug with printing issuers and other things that contain UTF-8 Reported by Jean-Luc Duprat The very simple fix ix is a joint effort by Henson and Levitte Fixes libressl/portable issue #845 ok jsing
2023-04-21mg: fix space_to_tabstopOmar Polo
Since the import of mg in the tree, space_to_tabstop used curbp->w_doto (the byte offset in the current line) as mean to deduce the current column for indentation. This is wrong because it doesn't account for tab, control characters and octets > 127 (which are all rendered with more than one column.) Use instead getcolpos(). ok tb@
2023-04-21mg: allow to change the tab widthOmar Polo
This makes the tab width customizable per-buffer. The new function `set-tab-width' changes it for the current buffer or the default value for new buffers if called with a prefix argument (or from the startup file.) The default tab width is still 8 column. Together with the newly resurrected no-tab-mode, allows to use mg for a variety of programming languages and coding styles. Note that it's not possible to call set-tab-width with auto-execute in the startup file due to limitations in how auto-execute and the parser work. ok tb@
2023-04-19remove duplicate includesJonathan Gray
2023-04-17Ignore the user keys range when checking if a key is Unicode.Nicholas Marriott
2023-04-17It seems silly to use progname for version, just always say tmux.Nicholas Marriott
2023-04-17Make the check if printing is allowed the same as writing which is lessNicholas Marriott
confusing.
2023-04-17Discard mouse sequences that have the right form but actually areNicholas Marriott
invalid (for example have column zero rather than one).
2023-04-17fix buffer overflow in displaymatch(); ok/tweak tb@Omar Polo
2023-04-17fix a few dobeep_msgs() calls: a space is already added between the argumentsOmar Polo
ok tb@
2023-04-17add doindent() prototype at the start of the file; forgotten in previousOmar Polo
2023-04-17resurrect mg' no-tab-modeOmar Polo
It's a mode that makes mg insert spaces up to the next tab stop upon pressing TAB, along with the various tweaks needed in other places so for e.g. auto-indent-mode also uses spaces. This is not just an unifdef NOTAB: even under no-tab-mode mg should consider literal TAB characters wide up to the next tab stop, while the hidden code considered hard tabs to be just control character (i.e. ^I) with width of two columns. I'm also introducing the helper function doindent() in utils.c to de-obfuscate the insertion of tabs/spaces until the given column. ok tb@
2023-04-17fix a macro and tweak punctuation;Jason McIntyre
2023-04-16Add a -u label option to print selected utrace records, used by upcomingOtto Moerbeek
malloc (leak) dump fucntion. ok semarie@
2023-04-14Add a missing voidTheo Buehler
2023-04-14Drop policy printing from opensslTheo Buehler
Nothing really uses the policy tree. It's desgined with built-in DoS capabilities directly from the RFC. It will be removed from the attack surface and replaced with something equivalent that doesn't grow exponentially with the depth. This removes the only reason the policy tree itself ever leaked out of the library. ok jsing
2023-04-14Fix double free in error path in openssl(1) x509Theo Buehler
A conversion from X509_REQ_get_pubkey() to X509_REQ_get0_pubkey() missed one free of pkey in an unlikely error path. After the conversion pkey is no longer owned by us, so we mustn't free it. ok jsing
2023-04-12correct the entry for chilepeso; from jan staryJason McIntyre
2023-04-12remove duplicate signal.h includeJonathan Gray
2023-04-12fix double wordsJonathan Gray
ok dtucker@
2023-04-12Fix 24bit maximum/mask in manpage. Noticed by wangqr on github.Claudio Jeker
2023-04-09Remove X9.31 support from openssl(1)Theo Buehler
The X9.31 standard has long been retired and deprecated and libcrypto will drop support for it soon. This prepares userland. ok jsing