CVS: cvs.openbsd.org: src

2019-09-03 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/03 23:56:54

Modified files:
usr.bin/ssh: ssh-keygen.1 

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2019-09-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/03 20:27:31

Modified files:
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: www

2019-09-03 Thread Ian Sutton
CVSROOT:/cvs
Module name:www
Changes by: i...@cvs.openbsd.org2019/09/03 19:42:18

Modified files:
.  : armv7.html 

Log message:
remove unsupported beagleboard (c4/xm) platform

spotted by jsg, ok jsg@



CVS: cvs.openbsd.org: src

2019-09-03 Thread ASOU Masato
CVSROOT:/cvs
Module name:src
Changes by: a...@cvs.openbsd.org2019/09/03 18:00:49

Modified files:
lib/libedit: vi.c 

Log message:
Correct the length of read from file, wide character buffer, add NUL
terminate to read buffer. This fix the bug that does not run input
command entered by vi editor. This fix is come from NetBSD
lib/libedit/vi.c 1.46 and 1.47.

ok schwarze@ deraadt@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/03 17:08:42

Modified files:
usr.bin/less   : ch.c command.c edit.c forwback.c input.c less.h 
 line.c linenum.c os.c output.c screen.c 
 search.c signal.c tags.c ttyin.c 

Log message:
less uses a correct raceless signal method of indicating signal events in
a volatile sig_atomic_t variable, and then processing events in the mainloop.
But only one variable was used for 3 signals, with |= bit operations which
are signal interruptable!  Rewrite the code to use 3 independent variables
and cleanup how the mainloop observes indications.
ok schwarze



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 16:31:52

Modified files:
sys/dev/fdt: amlclock.c 

Log message:
Add support for getting the frequency of the CPU clocks.



CVS: cvs.openbsd.org: src

2019-09-03 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/03 15:28:45

Modified files:
sys/scsi   : scsiconf.c 

Log message:
Shorten normal dmesg attach verbiage and expand SCSIDEBUG verbiage.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 15:02:51

Modified files:
share/man/man4 : Makefile 
Added files:
share/man/man4 : amlmmc.4 

Log message:
amlmmc(4)



CVS: cvs.openbsd.org: src

2019-09-03 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2019/09/03 14:51:49

Modified files:
usr.bin/ssh: ssh-keygen.c sshsig.c 

Log message:
repair typo and editing mishap



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 14:24:23

Modified files:
sys/arch/arm64/conf: GENERIC RAMDISK 

Log message:
Enable amlmmc(4).

ok patrick@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 13:56:42

Modified files:
sys/arch/macppc/conf: Makefile.macppc 

Log message:
Add clang support.



CVS: cvs.openbsd.org: src

2019-09-03 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/03 12:17:51

Modified files:
regress/usr.bin/mandoc: Makefile.inc 
regress/usr.bin/mandoc/char/space: zerowidth.out_html 
regress/usr.bin/mandoc/char/unicode: ascii.out_html 
 invalid.out_html 
 latin1.out_html 
 latin1diff.out_html 
 named.out_html 
 namediff.out_html 
 nogroff.out_html 
regress/usr.bin/mandoc/man/HP: literal.out_html 
regress/usr.bin/mandoc/man/IP: literal.out_html 
regress/usr.bin/mandoc/man/RS: literal.out_html 
   paragraph.out_html 
regress/usr.bin/mandoc/man/SH: paragraph.out_html 
regress/usr.bin/mandoc/man/SS: paragraph.out_html 
regress/usr.bin/mandoc/man/SY: literal.out_html 
regress/usr.bin/mandoc/man/TP: literal.out_html 
regress/usr.bin/mandoc/mdoc/Bd: nf.out_html paragraph.out_html 
regress/usr.bin/mandoc/mdoc/Bf: paragraph.out_html 
regress/usr.bin/mandoc/mdoc/D1: spacing.out_html 
regress/usr.bin/mandoc/mdoc/Rs: paragraph.out_html 
regress/usr.bin/mandoc/mdoc/Sh: paragraph.out_html 
regress/usr.bin/mandoc/roff/esc: f.out_html 
regress/usr.bin/mandoc/roff/ft: badargs.out_html 
regress/usr.bin/mandoc/roff/sp: fill-man.out_html 
regress/usr.bin/mandoc/roff/string: dotT.out_html 

Log message:
adapt to new  output logic (html.c rev. 1.131)



CVS: cvs.openbsd.org: src

2019-09-03 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/03 12:07:57

Modified files:
usr.bin/mandoc : html.c 

Log message:
Wrap text and phrasing elements in paragraphs unless already
contained in flow containers; never put them directly into sections.
This helps to format paragraphs with the CSS class selector .Pp.

Suggested by bentley@ and also by Colin Watson 
via Michael Stapelberg ,
see https://github.com/Debian/debiman/issues/116



CVS: cvs.openbsd.org: src

2019-09-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/03 11:51:52

Modified files:
sys/arch/macppc/dev: adb.c akbd_machdep.c macintr.c openpic.c 
 pm_direct.c 
sys/arch/macppc/macppc: autoconf.c clock.c conf.c machdep.c 
ofw_machdep.c openfirm.c 

Log message:
a sprinkling of function ansification



CVS: cvs.openbsd.org: src

2019-09-03 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2019/09/03 09:12:32

Modified files:
sys/arch/armv7/conf: Makefile.armv7 

Log message:
drop support for building with gcc; ok deraadt@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/03 09:09:39

Modified files:
usr.bin/mandoc : mdoc_html.c 

Log message:
Format .Nd with more logically with  rather than ; after all,
it is supposed to be a one-line description.  For the case where .Nd
generates flow content (which is very bad style but syntactically
valid), rely on the new feature of html_close_paragraph() to close
out the  prematurely, effectively moving the flow content out
of the .Nd for HTML presentation.  For the final closing, also rely
on the new html_close_paragraph() functionality, this time triggered
by the subsequent block, which will typically be .Sh SYNOPSIS.



CVS: cvs.openbsd.org: src

2019-09-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/03 08:37:22

Modified files:
sys/arch/macppc/macppc: locore0.S ofwreal.S 

Log message:
only need one start: label; ok kettenis



CVS: cvs.openbsd.org: src

2019-09-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/03 08:35:23

Modified files:
sys/arch/macppc/dev: pm_direct.c 

Log message:
delete incorrect casts, and a bit if ansi functions; ok jcs



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 08:34:53

Modified files:
sys/arch/macppc/macppc: locore.S 

Log message:
Use cmplw mnemonic instead of cmpl with only 3 operands.  Make clang happy.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/03 08:34:41

Modified files:
sys/arch/powerpc/powerpc: pmap.c 

Log message:
some cleanup for clang; ok kettenis



CVS: cvs.openbsd.org: src

2019-09-03 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/03 06:30:34

Modified files:
usr.bin/mandoc : html.c 

Log message:
oops, fix use after free in previous



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 06:13:41

Modified files:
sys/arch/macppc/dev: mesh.c 

Log message:
Replace empty body of while loop with continue statement.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/03 06:03:05

Modified files:
usr.bin/mandoc : html.c 

Log message:
Make html_close_paragraph() more versatile, more robust, less
dependent on individual HTML elements, and simpler: don't just close
, , and , but any element that establishes phrasing
context.  This doesn't change output for any OpenBSD manual page,
but it will allow using this function more safely and at more places
in the future.



CVS: cvs.openbsd.org: src

2019-09-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/03 04:39:08

Modified files:
sys/netmpls: mpls_output.c 

Log message:
correct INET6 path in mpls_getttl() and avoid uninitialised variable
ok dlg@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/09/03 04:32:15

Modified files:
usr.bin/ctfdump: ctfdump.c 

Log message:
Use 0 as exit value if no error has been found in the CTF section.

ok sunil@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/03 04:00:19

Modified files:
sys/arch/armv7/stand/efiboot: efidev.c 

Log message:
remove duplicate test introduced in rev 1.3



CVS: cvs.openbsd.org: src

2019-09-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/03 03:17:10

Modified files:
sys/dev/i2c: ipmi_i2c.c 

Log message:
Avoid uninitialized variable; using a for loop like in siif_recvmsg() was
what I had intended to write anyway.

spotted-by & ok jsg@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Stefan Fritsch
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2019/09/03 03:00:44

Modified files:
sys/dev/pci: if_bnxt.c 

Log message:
bnxt: Support MSI-X

Tested on a BCM57412

ok jmatthew@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:37:45

Modified files:
regress/usr.bin/ssh: Makefile 
Added files:
regress/usr.bin/ssh: sshsig.sh 

Log message:
regress test for sshsig; feedback and ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:37:06

Modified files:
regress/usr.bin/ssh: agent-timeout.sh 

Log message:
only add plain keys to prevent any certs laying around
from confusing the test.



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:35:27

Modified files:
usr.bin/ssh: PROTOCOL.sshsig ssh-keygen.1 ssh-keygen.c 
 sshsig.c sshsig.h 

Log message:
sshsig tweaks and improvements from and suggested by Markus

ok markus/me



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:34:20

Modified files:
usr.bin/ssh: ssh-keygen.1 ssh-keygen.c 
usr.bin/ssh/ssh-keygen: Makefile 
Added files:
usr.bin/ssh: PROTOCOL.sshsig sshsig.c sshsig.h 

Log message:
sshsig: lightweight signature and verification ability for OpenSSH

This adds a simple manual signature scheme to OpenSSH.
Signatures can be made and verified using ssh-keygen -Y sign|verify

Signatures embed the key used to make them. At verification time, this
is matched via principal name against an authorized_keys-like list
of allowed signers.

Mostly by Sebastian Kinne w/ some tweaks by me

ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:32:11

Modified files:
usr.bin/ssh: auth-options.c misc.c misc.h 

Log message:
move authorized_keys option parsing helpsers to misc.c and make
them public; ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:31:21

Modified files:
usr.bin/ssh: sshkey.c sshkey.h 

Log message:
make get_sigtype public as sshkey_get_sigtype(); ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:30:47

Modified files:
usr.bin/ssh: auth2-pubkey.c authfile.c authfile.h 

Log message:
move advance_past_options to authfile.c and make it public;
ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:29:58

Modified files:
usr.bin/ssh: auth2-pubkey.c misc.c misc.h 

Log message:
move skip_space() to misc.c and make it public; ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:29:15

Modified files:
usr.bin/ssh: authfd.c authfd.h 

Log message:
authfd: add function to check if key is in agent

This commit adds a helper function which allows the caller to
check if a given public key is present in ssh-agent.

work by Sebastian Kinne; ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:28:30

Modified files:
usr.bin/ssh: authfd.c 

Log message:
fix memleak in ssh_free_identitylist(); ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/03 02:27:52

Modified files:
usr.bin/ssh: ssh-keygen.c 

Log message:
factor out confirm_overwrite(); ok markus@



CVS: cvs.openbsd.org: src

2019-09-03 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/09/03 01:55:07

Modified files:
sbin/slaacd: frontend.c 

Log message:
It's perfectly normal for the SIOCGIFFLAGS and SIOCGIFXFLAGS to fail
when an interface is gone. Bubble the error up and let the callers
deal with it instead of exiting.
OK deraadt, benno



CVS: cvs.openbsd.org: src

2019-09-03 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/03 01:03:30

Modified files:
usr.sbin/tcpdump: tcpdump.8 

Log message:
pcap-filter is now section 7;