summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2021-09-09Fix parsing of aliases again (GitHub issue 2842), also make argumentNicholas Marriott
parsing a bit simpler and fix the names of some client flags.
2021-09-09- move CAVEATS to its correct orderJason McIntyre
- use the term "legacy" protocol rather than "original", as the latter made the text misleading - uppercase SCP ok djm
2021-09-08Use the SFTP protocol by default. The original scp/rcp protocol remainsDamien Miller
available via the -O flag. Note that ~user/ prefixed paths in SFTP mode require a protocol extension that was first shipped in OpenSSH 8.7. ok deraadt, after baking in snaps for a while without incident
2021-09-08correct my mistake in previous fix; spotted by halexDamien Miller
2021-09-07Fix an infinite loop that could occur during some cases of horizontallyIngo Schwarze
overlapping horizontal spans. One span would calculate a desired target width and start preparations for applying it to some columns, then the other span would overwrite the target width with a different value and also start preparations for applying that one to some columns, which could sometimes confuse the code doing the final distribution to the point of not doing anything at all before entering the next iteration. Fix this by making sure the distribution is done step by step, doing one step at a time rather than allowing multiple steps to conflict. Specifically, always do the smallest useful step first. This change also simplifies the code. For example, the local "colwidth" array is no longer needed. Note that the algorithm still differs from the one implemented in GNU tbl(1), which appears to not even try to harmonize column widths but seems to simply distribute the same amount to all constituent columns, no matter whether their intrinsic width is narrow or wide. Adopting a GNU-compatible algorithm might allow further simplifiction in addition to yielding even more similar output, but i do not want to implement any major changes of the algorithm at this time. The infinite loop was reported by <Oliver dot Corff at email dot de>.
2021-09-07Correctly calculate required column widths for tables containingIngo Schwarze
cells that horizontally span columns which contains "n" (number) formatted cells on other rows. This requires updating total column widths from "n" formatted cells before starting width distribution from the spanning cells to their constituent columns.
2021-09-07Retry up to 3 times on password authentication failureJoshua Stein
ok martijn support from various
2021-09-07we already parse the GNU tbl(7) "nospaces" option,Ingo Schwarze
so let it have the intended effect, too
2021-09-07do not crash when a tbl(7) cell uses roman fontIngo Schwarze
2021-09-07avoid NULL deref in -Y find-principals. Report and fix fromDamien Miller
Carlo Marcelo Arenas Belón
2021-09-06revision 1.381 neglected to remove sChallengeResponseAuthenticationTodd C. Miller
from the enum. Noticed by christos@zoulas.com. OK dtucker@
2021-09-05new sentence, new line, and tweak wording of previous;Jason McIntyre
2021-09-05Remove unused variable tmptm in do_body of openssl(1) caKinichiro Inoguchi
2021-09-05Using serial number instead as subject if it is empty in openssl(1) caKinichiro Inoguchi
This allows multiple entries without a subject even if unique_subject == yes. Referred to OpenSSL commit 5af88441 and arranged for our codebase. ok tb@
2021-09-05Check extensions before setting version to v3Kinichiro Inoguchi
Referred to OpenSSL commit 4881d849 and arranged for our codebase. comment and ok from tb@
2021-09-05Use accessor method rather than direct X509 structure accessKinichiro Inoguchi
Referred to OpenSSL commit a8d8e06b and arranged for our codebase. comment and ok from tb@
2021-09-04during prioritization for man(1), correctly extract the section nameIngo Schwarze
from the file name extension of gzipped manual page files; bug found on Alpine Linux by Soeren Tempel <soeren at soeren hyphen tempel dot net>, who also tested this patch
2021-09-04mdoc(7): improve output of .At 32vIngo Schwarze
The official designation by AT&T was "UNIX/32V", so use that in the output. That also makes sense because "system/architecture" is a widespread convention to refer to the port of an operating system to a specific architecture, in this case 32V (32bit DEC VAX). The former wording "Version 32V AT&T UNIX" was misleading because 32V is not a version number. Even though UNIX/32V was not officially designated as Version 7 by AT&T, prepend "Version 7" because it was in fact a straightforward port of Version 7 AT&T UNIX. That makes it easier to understand for 21st century readers of manual pages. Suggested by nabijaczleweli at nabijaczleweli dot xyz. Same change as in GNU troff commit 21d30728. OK G dot Branden dot Robinson at gmail dot com (gbranden@ in groff)
2021-09-04delete a stray word reported by wilfried dot meindl at gmail dot com;Ingo Schwarze
while here, delete the redundant word "will" right in front of it, too
2021-09-04In the fallback code to look for manual pages without using mandoc.db(5),Ingo Schwarze
accept files "man<one-digit-section>/<name>.<full-section>" in addition the already supported "man<full-section>/name.[01-9]*". Needed for example on Alpine Linux which puts its Perl manuals into "man3/<name>.3pm" and the POSIX manuals into "man3/<name>.3p". While here, allow the glob(3) at the end of fs_lookup() to add multiple matches to the result set. This improves man -w output and may also help some cases of plain man(1), allowing main() to prioritize properly rather than fs_lookup() picking a random match. None of this really matters for standard manpaths on OpenBSD because both base system and ports developers are highly disciplined about putting manual pages into properly named files and directories, but even on OpenBSD, it may help to access some raw, unported third-party manual page trees. Issue reported and patch tested by Soeren Tempel <soeren at soeren hyphen tempel dot net>.
2021-09-04* avoid the misleading wording "second kill signal"Ingo Schwarze
* simplify and shorten EXIT STATUS, no change with respect to the meaning * cut down HISTORY to the usual amount of information feedback deraadt@ and jmc@; OK deraadt@; OK jmc@ on an earlier version
2021-09-04* more specific error messagesIngo Schwarze
* no need to check suffix != NULL twice in a row * style: *(suffix + 1) -> suffix[1] feedback & OK deraadt@
2021-09-03Use .Cm instead of .Dq in StrictHostKeyChecking list for consistency.Darren Tucker
Patch from scop via github PR#257, ok jmc@
2021-09-03Mention using ssh -i for specifying the public key file in the caseDarren Tucker
where the private key is loaded into ssh-agent but is not present locally. Based on patch from rafork via github PR#215, ok jmc@
2021-09-03Refer to KEX "algorithms" instead of "methods" to match other referencesDarren Tucker
and improve consistency. Patch from scop via github PR#241, ok djm@
2021-09-03Remove redundant attrib_clear in upload_dir_internal. The subsequentDarren Tucker
call to stat_to_attrib clears the struct as its first step anyway. From pmeinhardt via github PR#220, ok djm@
2021-09-02various improvements to the text/usage, chiefly removing alternative longJason McIntyre
options from SYNOPSIS/usage; diff from leon fischer the opening sentence is mine - i say that not to take credit, just to distinguish that leon did not agree with wording
2021-09-02rather than using sys/param.h, define a local replacement MINIMUM() insteadTheo de Raadt
of MIN(), as done elsewhere
2021-09-02remove sys/param.h that snuck in, by replacing MAXPATHLEN with PATH_MAXTheo de Raadt
2021-09-02sys/param.h is not needed for any visible reasonTheo de Raadt
2021-09-02Use defined constantsKinichiro Inoguchi
2021-09-02Add DB_TYPE_SUSPKinichiro Inoguchi
2021-09-02timeout(1): execvp(2) does not return except on errorSebastien Marie
there is no need to check if the return value is -1. just unconditionally call err(3). ok deraadt@ schwarze@
2021-09-02Make all signal handler functions async-signal-safeIngo Schwarze
by deleting the redundant "killersig" struct member and using the existing sig_atomic_t cl_sigterm variable instead. While here, garbage collect the h_hup() signal handler which is essentially identical to h_term(). This also gets rid of the last #define & #undef in cl_main.c. OK martijn@, and also tested by Tim <trondd at kagu hyphen tsuchi dot com>.
2021-09-02Move subject check process after the subject edit processKinichiro Inoguchi
Referred to OpenSSL commit 2cedf794 and arranged for our codebase. ok tb@
2021-09-02move comment into correct placeTheo de Raadt
2021-09-02bunch of err() should be errx()Theo de Raadt
2021-09-02No need to list foreign source code repository tagsJob Snijders
Feedback from deraadt@
2021-09-02Change copying arguments to that flags without arguments are insertedNicholas Marriott
correctly and empty arguments lists do not crash. Fixes crash reported by & ok mpi@.
2021-09-02some functionality requires pledge "proc"Theo de Raadt
2021-09-01Add the NetBSD source code repository tag back to help future historiansJob Snijders
2021-09-01Fix overflow / underflow check by moving it up before the returnJob Snijders
Also rename 'end' to 'suffix' for readability. OK beck@
2021-09-01Update project tag line, shorten some err() callsJob Snijders
2021-09-01small unused/initialization improvementsTheo de Raadt
2021-09-01repair strtonum idiom and improve error messagingTheo de Raadt
ok job
2021-09-01Enable making timeout(1)Job Snijders
OK deraadt@
2021-09-01Style nitsJob Snijders
Contribution from Anton Lindqvist
2021-09-01consider two files sharing the same inode identicalAlexander Hall
This gives a substantial speedup when comparing directory structures with many hardlinked files, e.g. when using rsnapshot for incremental backup. ok stsp@ millert@
2021-09-01Case h is pointlessJob Snijders
Feedback from deraadt@
2021-09-01Fix indentingJob Snijders
Feedback from deraadt@