summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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@
2023-03-31Return immediately from get_sock_port if sock <0 so we don't callDarren Tucker
getsockname on a negative FD. From Coverity CID 291840, ok djm@
2023-03-31don't leak arg2 on parse_pubkey_algos error path; ok dtucker@Damien Miller
2023-03-31clamp max number of GSSAPI mechanisms to 2048; ok dtuckerDamien Miller
2023-03-31don't print key if printing hostname failed; with/ok dtucker@Damien Miller
2023-03-31remove redundant testDamien Miller
2023-03-31don't attempt to decode a ridiculous number of attributes;Damien Miller
harmless because of bounds elsewhere, but better to be explicit
2023-03-31remove unused variable; prompted by Coverity CID 291879Damien Miller
2023-03-31Check fd against >=0 instead of >0 in error path. The dup couldDarren Tucker
in theory return fd 0 although currently it doesn't in practice. From Dmitry Belyavskiy vi github PR#238.
2023-03-30drop unnecessary copy of fname; ok tb@Omar Polo
2023-03-30tabify two linesOmar Polo
2023-03-30don't access(conffile)Omar Polo
This removes a few access(2) calls in the configuration file handling. startupfile() now opens and return the file and to avoid surprises it also uses a caller-provided buffer to store the filename. This also removes the extra adjustpath() that load() did: it has been moved to evalfile() only. with help, fixes and ok tb@
2023-03-30trailing whitespacesOmar Polo
2023-03-30strncpy -> strlcpy to properly NUL-terminate the copy of the pathOmar Polo
otherwise paths longer than NFILEN (1024) given with -u won't NUL-terminate `file'.
2023-03-30Ignore return value from muxclient(). It normally loops without returning,Darren Tucker
but it if returns on failure we immediately exit. Coverity CID 405050.
2023-03-30return SSH_ERR_KEY_NOT_FOUND if the allowed_signers file is empty,Damien Miller
not SSH_ERR_INTERNAL_ERROR. Also remove some dead code spotted by Coverity; with/ok dtucker@
2023-03-30Remove dead code from inside if block. The only way the if statement canDarren Tucker
be true is if both dup()s fail, and in that case the tmp2 can never be set. Coverity CID 291805, ok djm@
2023-03-29plug leak of tagpos in poptag() if loadbuffer() failsOmar Polo
2023-03-29drop needless global tagsfn pathOmar Polo
mg kept the path to the last loaded tag file in tagsfn which was used for both the lazy loading (now removed) and as a flag to know if any tags are currently loaded. It's redundant and complicates the code: just check if the tree is empty instead. ok tb@
2023-03-29change tagvisit (aka visit-tag-table) to immediately load the tag fileOmar Polo
before it used to only record the path to the tag file which was loaded on demand upon find-tag (M-.). tagvisit did to do a stat + access dance to know if the path was pointing to a regular, readable file and loadtags (called lazily by find-tag) trusted those checks... Instead, just load the tags in tagvisit and drop the lazy mechanics. ok tb@
2023-03-29Explicitly ignore return value from sshpkt_disconnect since we set ourDarren Tucker
own return value for the function. Coverity CID 291797, ok djm@