summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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
2023-04-09Minor code cleanupTheo Buehler
Unwrap a few awkwardly wrapped lines, drop redundant parentheses and add empty lines after some variable declarations. No change in the generated assembly.
2023-04-06simplify sshsig_find_principals() similar to what happened toDamien Miller
sshsig_check_allowed_keys() in r1.31, removing some dead code
2023-04-06remove redundant ssh!=NULL check; we'd already dereferenced itDamien Miller
2023-04-06match_user() shouldn't be called with user==NULL unlessDamien Miller
host and ipaddr are also NULL
2023-04-06don't care about glob() return value here.Damien Miller
2023-04-03Move null check up and simplify process_escapes. Based on Coverity CIDDarren Tucker
291863 which points out we check the channel pointer for NULLness after dereferencing it. Move this to the start of the function, and while there simplify initialization of efc a bit. ok djm@
2023-04-03Clarify text for new -A slightly, GitHub issue 3508.Nicholas Marriott
2023-04-02add Ryuichi Sakamoto. rest in peace.Stuart Henderson
2023-04-01horrible whitespace, mostly on non-code lines. no object changeTheo Buehler
2023-03-31Explicitly ignore return from waitpid here too.Darren Tucker
2023-03-31Explictly ignore return codes where we don't check them. From DmitryDarren Tucker
Belyavskiy via github PR#238, ok djm@