summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-02-10ssh-keygen -D pkcs11.so needs to initialize pkcs11 interactive,Sebastian Benoit
so it can ask for the smartcards PIN. ok markus@
2019-02-10when checking that filenames sent by the server side match what theDamien Miller
client requested, be prepared to handle shell-style brace alternations, e.g. "{foo,bar}". "looks good to me" millert@ + in snaps for the last week courtesy deraadt@
2019-02-10syslog when connection is dropped for attempting to run a commandDamien Miller
when ForceCommand=internal-sftp is in effect; bz2960; ok dtucker@
2019-02-09Revert previous.Ingo Schwarze
It appears the flag combination -S -p not only preserved the modification time as documented, but also the file mode unless the file content changed, so with the change in rev. 1.68, the flag -p no longer applies the given file mode if the file content does not change. Regression in the lang/go-boostrap build system reported by espie@.
2019-02-09The horizontal line in a data cell containing only "_" or "="Ingo Schwarze
connects to the horizontally adjacent vertical line or cell; fixing a bug reported by bentley@.
2019-02-09Completion of command-alias members.Nicholas Marriott
2019-02-09ignore empty request lines in the table data reader;Ingo Schwarze
fixing a minibug reported by bentley@
2019-02-09Fix weird wrap showing cipher list in interactive modeKinichiro Inoguchi
ok jsing@ tb@
2019-02-09Summarize the 4 same name functions and move it to apps.cKinichiro Inoguchi
ok tb@ jsing@
2019-02-08Fix a race condition: do not unlink(2) a file and then open(2) itIngo Schwarze
with O_CREAT|O_EXCL; instead, always create it with a temporary name, then rename(2) it into place atomically. For example, the race caused failures in parallel builds that (foolishly) install the same file twice. This patch makes the -S option a no-op, making install(1) always behave like -S used to. Based on a minimally different patch from Lauri Tirkkonen <lotheac at iki dot fi>, and including a manual page tweak from deraadt@. OK deraadt@; "seems the right thing to do" tedu@.
2019-02-07Remove rpath from pledge when only stdin is used.Tobias Stoeckmann
ok schwarze@
2019-02-06Let roff_getname() end the roff identifier at a tab characterIngo Schwarze
and audit all its callers whether termination is handled correctly. Resulting improvements: * An escape or tab ending the macro name in a macro invocation is discarded, and argument processing is started after it. * An escape or tab ending a name in ".if d" and ".if r" is preserved. * An escape ending a name in ".ds" causes the whole request to be ignored. * A tab ending a name in ".ds" becomes part of the string. * An escape or tab ending a name in ".rm" causes the rest of the line to be ignored. * An escape or tab ending the first name in ".als", ".rn", or ".nr" causes the whole request to be ignored. Kurt Jaeger <pi at FreeBSD> made me aware of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235456#c0 and in that bug report, comment 0 item (3) is a special case of this class of issues. Yes, the "mh" manual pages are no doubt among the worst on the planet.
2019-02-06adjust style and comments in roff_getname(); no functional changeIngo Schwarze
2019-02-06Add -b to display-panes like run-shell, GitHub issue 1559.Nicholas Marriott
2019-02-05Add islower check to show_ciphers in pkey.c and rsa.c.Kinichiro Inoguchi
suggested by jsing@ ok tb@
2019-02-05Adapt code in the non-USE_PIPES codepath to the new packet API.Darren Tucker
This code is not normally reachable since USE_PIPES is always defined. bz#2961, patch from adrian.fita at gmail com.
2019-02-05Convert openssl(1) pkey to the newer style of option handling.Kinichiro Inoguchi
ok jsing@
2019-02-05dev_t is signed to permit passing -1 as an invalid condition, but theTheo de Raadt
decomposition into major and minor is unsigned, so we should print them with %u instead of %d. ok guenther
2019-02-04fix NULL-deref crash in PKCS#11 code when attempting login to a tokenDamien Miller
requiring a PIN; reported by benno@ fix mostly by markus@
2019-02-04add support for defining variables through the environmentJasper Lievisse Adriaanse
this uses the PKG_CONFIG_$PACKAGE_$VARIABLE format as implemented in fd.o pkg-config 0.29.1; bump our version accordingly.
2019-02-04implement compat with fd.o pkg-config 0.29.0:Jasper Lievisse Adriaanse
- add --validate flag which is like --exists but slightly more verbose and doesn't process dependencies - bump version to 0.29.0 while here, adjust message about missing fields to match the upstream fd.o message, instead of referencing the filename we should print the packagename tested in a bulk by aja@
2019-02-04Document missing command line options for the rsautl command.Theo Buehler
ok jsing, "looks good!" jmc
2019-02-04Remove obsolete "Protocol" from commented out examples.Darren Tucker
Patch from samy.mahmoudi at gmail com.
2019-02-03zap spaces before tabsTheo Buehler
2019-02-03Convert openssl(1) rsautl to the newer style of option handling.Joel Sing
ok beck@ inoguchi@ tb@
2019-02-01Fix regresion that prevented -A0 from working as before.Todd C. Miller
This can be used to disable the default behavior of reporting events for the weekend on a Friday.
2019-02-01update currency exchange rates;Jason McIntyre
2019-02-01Save connection timeout and restore for 2nd and subsequent attempts,Darren Tucker
preventing them from having no timeout. bz#2918, ok djm@
2019-01-31Relax overzealous PATH_INFO validation.Ingo Schwarze
URIs like https://man.openbsd.org/OpenBSD-2.2/cat1/cat.0 are still required to work because they result from apropos searches for old releases (up to 5.0) which used to install preformatted manual pages. Regression reported by jj@.
2019-01-31Fix tbl(7) centering in mdoc(7) documents.Ingo Schwarze
Since resetting of offsets works quite differently in the mdoc(7) and man(7) formatters, the tbl(7) formatter needs to save the global offset on entry and restore it on exit. The additional indentation needed for table centering has to be added to its own offset variable and applied to each line of the table, rather than only to the first. Bug found by bentley@ in emulators/fceux(6).
2019-01-31thinko, from Scott ChelohaMarc Espie
2019-01-31convert fgetln to getline. this improves portability and sets a goodTed Unangst
better example for other code to follow. in the common case, grep uses mmap anyway (so no functional change). despite fgetln doing sneaky things with stdio internals, preliminary analysis by lauri suggests this may actually reduce the number of allocations. from Lauri Tirkkonen.
2019-01-30Add authors for public domain sntrup4591761 code;Markus Friedl
confirmed by Daniel J. Bernstein
2019-01-30Document that we now have support for multiple -p and -u flags.Martijn van Duren
Triggered by Marcus MERIGHI Input and OK jmc@
2019-01-30Use ' and " instead of archaically considering ` a left quote.Anthony J. Bentley
ok deraadt@
2019-01-29replace some archaic quotes with plain variations.Ted Unangst
ok deraadt millert
2019-01-29Fix a bug with -flag where later events may be shown when they should not be.Todd C. Miller
The problem is caused by the special handling of Friday, where calendar will show the upcoming events for the weeked as well. This change disables the special handling of Friday for the -B option, as was already done for -A. From Andy Bradford.
2019-01-29Remove SSLv23 padding mode from rsautl's usage (left behind in a removalTheo Buehler
from code and manual in 2017). Reported by KEINOS in github issue #101.
2019-01-28spelling;Jason McIntyre
2019-01-28ttyname() is used after unveil/pledge, so _PATH_DEVDB must also beTheo de Raadt
permitted.
2019-01-28Allow fstat to filter multiple pids and multiple users at the same time.Martijn van Duren
OK deraadt@
2019-01-28ttyname() is used, therefore must unveil _PATH_DEVDB.Theo de Raadt
from Anton Borowka
2019-01-27mmap support was broken in previous submitted diff from lauri tirkkonenTheo de Raadt
2019-01-27add -T to usage();Jason McIntyre
2019-01-26check in scp client that filenames sent during remote->local directoryDamien Miller
copies satisfy the wildcard specified by the user. This checking provides some protection against a malicious server sending unexpected filenames, but it comes at a risk of rejecting wanted files due to differences between client and server wildcard expansion rules. For this reason, this also adds a new -T flag to disable the check. reported by Harry Sintonen fix approach suggested by markus@; has been in snaps for ~1wk courtesy deraadt@
2019-01-26make ssh-keyscan return a non-zero exit status if it finds no keys.Damien Miller
bz#2903
2019-01-26avoid double free, instead flowing through a free(NULL)Theo de Raadt
from Ville Valkonen
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2019-01-24Accept the host key fingerprint as a synonym for "yes" when acceptingDarren Tucker
an unknown host key. This allows you to paste a fingerprint obtained out of band into the yes/no prompt and have the client do the comparison for you. ok markus@ djm@
2019-01-24Have progressmeter force an update at the beginning and end of eachDarren Tucker
transfer. Fixes the problem recently introduces where very quick transfers do not display the progressmeter at all. Spotted by naddy@