Re: CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
> Modified files:
>   sys/kern   : uipc_syscalls.c 
> 
> Log message:
> Allocate and connect sockets first, then upon success create file
> descriptors so that the NET_LOCK is satisfied.
> ok mpi

and guenther



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/25 00:35:31

Modified files:
sys/kern   : uipc_syscalls.c 

Log message:
Allocate and connect sockets first, then upon success create file
descriptors so that the NET_LOCK is satisfied.
ok mpi



CVS: cvs.openbsd.org: src

2017-01-24 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/01/25 00:35:04

Modified files:
sys/kern   : sys_process.c 

Log message:
deSCARGize sys_ptrace()

ok mpi@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/25 00:29:30

Modified files:
gnu/usr.bin/clang: Makefile Makefile.arch 

Log message:
Descend into the arch specific subdirectory for every arch on
make obj.  This will enable us to add clang to the build.

"if it works" kettenis@
ok jsg@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/01/25 00:24:34

Modified files:
regress/usr.bin/mdoclint: mdoclint 

Log message:
+arm64;



CVS: cvs.openbsd.org: src

2017-01-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/01/25 00:21:18

Modified files:
usr.bin/ftp: ftp.1 

Log message:
cetificate -> certificate;



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 23:44:22

Modified files:
regress/lib/libcrypto: Makefile 

Log message:
link in rsa test



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 23:44:04

Added files:
regress/lib/libcrypto/rsa: Makefile rsa_test.c 

Log message:
Add rsa test from openssl, since it has a license now



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 23:43:13

src/regress/lib/libcrypto/rsa

Update of /cvs/src/regress/lib/libcrypto/rsa
In directory cvs.openbsd.org:/tmp/cvs-serv46357/rsa

Log Message:
Directory /cvs/src/regress/lib/libcrypto/rsa added to the repository



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 23:38:01

Modified files:
lib/libssl : d1_lib.c ssl_locl.h 

Log message:
Change the SSL_IS_DTLS() macro to check the version, rather than using a
flag in the encryption methods. We can do this since there is currently
only one DTLS version. This makes upcoming changes easier.

ok beck@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/01/24 23:15:51

Modified files:
sys/kern   : sched_bsd.c uipc_socket.c uipc_socket2.c 
 uipc_syscalls.c uipc_usrreq.c 
sys/net: if.c if_pflow.c pf.c 
sys/sys: filedesc.h systm.h 
sys/uvm: uvm_vnode.c 

Log message:
Enable the NET_LOCK(), take 2.

Recursions are currently known and marked a XXXSMP.

Please report any assert to bugs@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 23:15:44

Modified files:
lib/libcrypto/bn: bn.h bn_gcd.c bn_lcl.h bn_x931p.c 
lib/libcrypto/rsa: rsa_chk.c rsa_gen.c 

Log message:
Construct a BN_gcd_nonct, based on BN_mod_inverse_no_branch, as suggested
by Alejandro Cabrera  to avoid the possibility of a
sidechannel timing attack during RSA private key generation.

Modify BN_gcd to become not visible under LIBRESSL_INTERNAL and force
the use of the _ct or _nonct versions of the function only within
the library.

ok jsing@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 23:13:02

Modified files:
lib/libssl : d1_pkt.c s3_pkt.c ssl_locl.h 

Log message:
Provide ssl3_packet_read() and ssl3_packet_extend() functions that improve
the awkward API provided by ssl3_read_n(). Call these when we need to
read or extend a packet.

ok beck@



CVS: cvs.openbsd.org: www

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:www
Changes by: patr...@cvs.openbsd.org 2017/01/24 21:20:14

Added files:
.  : arm64.html 

Log message:
Initial stab at a page for OpenBSD/arm64.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/01/24 20:48:47

Modified files:
share/man/man7 : mdoc.7 

Log message:
add "arm64" as a valid .Dt arch argument;
inspired by deraadt@'s commit to usr.bin/mandoc/cgi.c



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 20:48:11

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

Log message:
Silence warnings caused by LLVM upgrade.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 20:24:52

Modified files:
etc: Makefile 

Log message:
+arm64



CVS: cvs.openbsd.org: src

2017-01-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2017/01/24 20:21:55

Modified files:
usr.sbin/bgpd  : rde.c rde.h rde_rib.c 

Log message:
Hopefully the last of the struct rib rototilling. Peer just points to a
struct rib and not rib_desc since the full descriptor is almost never needed.
This should now allow the update code to be changed.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 20:20:27

Modified files:
lib/libssl : ssl.h 

Log message:
Provide defines for SSL_CTRL_SET_CURVES/SSL_CTRL_SET_CURVES_LIST for things
that are conditioning on these.

>From BoringSSL.

ok beck@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 20:19:56

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

Log message:
+arm64



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 20:18:58

Modified files:
distrib: Makefile 

Log message:
enter arm64



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 20:18:06

Modified files:
sys/kern   : Makefile 

Log message:
+arm64



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 20:10:40

Modified files:
distrib/notes  : Makefile 

Log message:
Add arm64 to the allarchs target.

ok jsg@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 20:10:06

Modified files:
distrib/notes/arm64: contents features hardware prep whatis 

Log message:
Updates to OpenBSD/arm64 install notes.

with jsg@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/01/24 19:54:53

Modified files:
usr.bin/mandoc : Makefile 
Added files:
usr.bin/mandoc : mandoc.css 

Log message:
Add the style sheet used on man.openbsd.org to the source tree.

It is NOT used during "make build" and NOT installed, but it is
helpful for people trying to read and understand html.c and mdoc_html.c,
and maybe even for users of mandoc -Thtml.

OK deraadt@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 19:45:28

Modified files:
distrib/sets/lists/base: md.arm64 
distrib/sets/lists/comp: md.arm64 

Log message:
sync



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/01/24 19:33:25

Modified files:
sbin/mount : mount.c 

Log message:
Some simple cleanup:

* check strdup for malloc failure
* remove obvious /* NOTREACHED */
* return instead of exit from main
* err(1, NULL) instead of err(1, "malloc")
* mark usage as __dead

ok deraadt



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 19:29:25

Added files:
distrib/notes/arm64: contents features hardware install prep 
 upgrade whatis xfer 

Log message:
Copy install notes for arm64 from armv7.  These still need to be
modified to make sense for arm64.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 19:28:22

src/distrib/notes/arm64

Update of /cvs/src/distrib/notes/arm64
In directory cvs.openbsd.org:/tmp/cvs-serv82909/arm64

Log Message:
Directory /cvs/src/distrib/notes/arm64 added to the repository



CVS: cvs.openbsd.org: src

2017-01-24 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/01/24 19:14:41

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

Log message:
Improve HTML formatting of .Bl -tag.

In particular, when using the style sheet, put the body on the same
line as the head for short heads, or on the next line for long
heads, in a way that preserves both correct indentation and correct
vertical spacing with and without -compact, and with one or more
heads per body (hi, Zaphod) - eight use cases so far - and with and
without -tag, and with and without -offset, 32 use cases grand total.

Using many ideas from zhuk@, from , and from Benny Lofgren , and a few of my own.

This is an excellent demonstration that CSS is an extremely hostile
language, much more trapful and much harder to use than, say, C.
When matthew@ reported this in July 2014 (!), it was already a known
issue, and i no longer remember for how long.  My first serious
attempt at fixing it (in November 2015) failed miserably.  I'd love
to see simplifications of both the generated HTML code and of the
style sheet, but without breaking any of the 32 use cases, please.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2017/01/24 17:48:36

Modified files:
sys/conf   : GENERIC 

Log message:
enable BFD

OK deraadt@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2017/01/24 17:15:38

Modified files:
usr.sbin/bgpd  : rde.c rde.h rde_decide.c rde_rib.c 

Log message:
Switch rde_generate_update and rde_send_kroute to accept a struct rib instead
of the id. For this we move the rtableid into struct rib. Also move the update
code in rib.c up to where the kroute code is. Makes more senses like that.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2017/01/24 17:11:07

Modified files:
usr.sbin/bgpd  : bgpd.h parse.y 

Log message:
Flag the Loc-RIB with F_RIB_LOCAL so we can remove one ugly hack somewhere else



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 16:47:34

Modified files:
usr.bin/ftp: ftp.1 main.c 

Log message:
Add -S noverifytime to ftp to permit an unvalidated TLS connection when
you don't knwo what time it is



CVS: cvs.openbsd.org: src

2017-01-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2017/01/24 16:38:12

Modified files:
usr.sbin/bgpd  : rde.c rde.h rde_decide.c rde_rib.c 

Log message:
Save some space in struct rib_entry so it is back to 64bytes (on 64bit archs).
Doing this by folding the lock flag into a pointer and providing an accessor
function for the rib pointer. This is an acceptable middle path for this
important structure.
OK benno@ on an earlier version



CVS: cvs.openbsd.org: src

2017-01-24 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/01/24 16:37:10

Modified files:
libexec/ld.so  : dl_printf.c 

Log message:
make ldso[] const; OK guenther@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/01/24 16:41:44

Modified files:
sbin/mount : mount.c 

Log message:
whitespace



CVS: cvs.openbsd.org: src

2017-01-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/01/24 15:40:55

Modified files:
sys/net: bpf.c 

Log message:
splsoftnet() to  NET_LOCK() in bpfwrite().

ok dlg@, visa@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 15:40:09

Modified files:
bin/ps : keyword.c nlist.c 
usr.sbin/tcpdump: print-pflog.c 

Log message:
do not need sys/proc.h



CVS: cvs.openbsd.org: src

2017-01-24 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/01/24 15:22:20

Modified files:
sys/sys: atomic.h 

Log message:
add explicit casts for going from volatile void * to void * volatile *.

guenther says void * is less special in c++, and atomic.h now leaks into
c++ ports.

reported by naddy



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 14:50:23

Modified files:
usr.bin/tmux   : Makefile cmd-bind-key.c cmd-list-keys.c 
 cmd-unbind-key.c server.c tmux.1 tmux.h 
 window-choose.c 
Removed files:
usr.bin/tmux   : mode-key.c 

Log message:
Fixed keys for choose mode, and remove the last mode keys bits.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 13:24:54

Modified files:
usr.bin/tmux   : cmd-set-option.c 

Log message:
Fix set -u on array options.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 13:15:32

Modified files:
usr.bin/tmux   : cmd-attach-session.c cmd-new-session.c 
 cmd-switch-client.c environ.c options-table.c 
 tmux.1 tmux.h 

Log message:
Make update-environment an array as well.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 13:05:15

Modified files:
usr.bin/tmux   : options-table.c tmux.1 tty-term.c 

Log message:
Convert terminal-overrides to an array option.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 13:01:34

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Remove some lies about terminal-overrides from tmux.1.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 12:59:19

Modified files:
usr.bin/tmux   : cmd-show-messages.c cmd.c options-table.c 

Log message:
server-info can become an alias rather than a command.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 12:53:37

Modified files:
usr.bin/tmux   : client.c cmd-string.c cmd.c key-bindings.c 
 options-table.c pty.c tmux.1 tmux.h 

Log message:
Add support for custom command aliases, this is an array option which
contains items of the form "alias=command". This is consulted when an
unknown command is parsed.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 12:11:46

Modified files:
usr.bin/tmux   : cmd-set-option.c cmd-show-options.c options.c 
 tmux.h 

Log message:
If given an array option without an index either show or set all items,
and support -a for array options. Allow the separator for set to be
specified in the options table (will be used for backwards compatibility
later).



CVS: cvs.openbsd.org: src

2017-01-24 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2017/01/24 09:03:28

Modified files:
regress/lib/libc/malloc/malloc_general: Makefile 
malloc_general.c 

Log message:
fix make clean and warnings



CVS: cvs.openbsd.org: src

2017-01-24 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2017/01/24 08:54:53

Modified files:
regress/lib/libc/malloc/malloc_general: malloc_general.c 

Log message:
make sure realloc preserves data



CVS: cvs.openbsd.org: src

2017-01-24 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2017/01/24 08:32:20

Modified files:
regress/lib/libc/malloc/malloc_general: Makefile 

Log message:
use ${.OBJDIR}



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 08:11:55

Modified files:
lib/libssl : s3_clnt.c ssl_lib.c 

Log message:
BUF_MEM_free(), X509_STORE_free() and X509_VERIFY_PARAM_free() all check
for NULL, as does lh_free() - do not do the same from the caller.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 08:04:12

Modified files:
lib/libssl : d1_srtp.c s3_clnt.c ssl_cert.c ssl_lib.c 

Log message:
sk_free() checks for NULL so do not bother doing it from the callers.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 07:57:31

Modified files:
lib/libssl : s3_clnt.c s3_lib.c s3_srvr.c ssl_cert.c 
 ssl_lib.c ssl_rsa.c t1_lib.c 

Log message:
sk_pop_free() checks for NULL so do not bother doing it from the callers.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2017/01/24 07:14:51

Modified files:
sys/net: switchofp.c 

Log message:
Kill some unused variables found by clang.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/01/24 07:08:53

Modified files:
share/man/man8 : release.8 

Log message:
Remove some superfluous words and convert Ar VERSION into Va VERSION.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/01/24 07:07:41

Modified files:
usr.sbin/traceroute: traceroute.c 

Log message:
Tell traceroute6 to choose source address based on correct routing
table.
>From dhill, tweeks by me.
OK benno



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 06:51:26

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

Log message:
sync



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 06:34:26

Modified files:
lib/libssl : ssl_lib.c 

Log message:
Within libssl a SSL_CTX * is referred to as a ctx - fix this for
SSL_CTX_free().



CVS: cvs.openbsd.org: src

2017-01-24 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/01/24 06:33:06

Modified files:
sys/arch/armv7/include: vmparam.h 

Log message:
Use the same stack size as on i386

ok kettenis@ deraadt@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 06:32:55

Modified files:
usr.sbin/acme-client: acctproc.c base64.c certproc.c chngproc.c 
  dnsproc.c fileproc.c http.c json.c main.c 
  netproc.c revokeproc.c rsa.c util.c 

Log message:
Make returns consistent and remove parentheses per style(9).

Transformed with coccinelle.

Requested by and ok tb@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/01/24 06:28:33

Modified files:
usr.bin/tmux   : paste.c window.c 

Log message:
Shorten a long line, and don't leak buffer in paste_add if size is zero.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/01/24 06:28:47

Modified files:
usr.sbin/httpd : httpd.conf.5 

Log message:
sort SEE ALSO;



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/01/24 06:13:41

Modified files:
usr.sbin/acme-client: base64.c 

Log message:
nuke extra brackets. discussed with jsing



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 05:53:52

Modified files:
usr.sbin/acme-client: chngproc.c dnsproc.c fileproc.c http.c 
  json.c keyproc.c main.c parse.y 
  revokeproc.c util.c 

Log message:
Complete jsing's coccinelle cleanup... by hand
ok jsing



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 05:44:40

Modified files:
usr.sbin/ocspcheck: ocspcheck.c 

Log message:
correct usage format; ok beck claudio benno



CVS: cvs.openbsd.org: src

2017-01-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/01/24 05:43:00

Modified files:
share/man/man5 : resolv.conf.5 
lib/libc/net   : resolver.3 

Log message:
in resolver(3), document that _EDNS0 and _DNSSEC are no ops;
diff from kirill miazine

while here, bump all the no op texts to one standard blurb;
help/ok jca



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 05:38:41

Modified files:
usr.sbin/acme-client: main.c 

Log message:
errx() does not need extra newline



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 05:37:00

Modified files:
usr.sbin/httpd : httpd.conf.5 

Log message:
add ocspcheck to see also



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 05:30:35

Modified files:
usr.sbin/ocspcheck: ocspcheck.c 

Log message:
fix mode on open() and ftruncate(), noticed by
bcook@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 05:24:07

Modified files:
lib/libssl : t1_lib.c 

Log message:
#if 0 the ecformats_list and eccurves_list - these are currently unused but
will be revisited at some point in the near future.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 05:22:23

Modified files:
lib/libssl : s3_srvr.c 

Log message:
Remove unused cert variable.

Found by bcook@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 05:14:44

Modified files:
usr.sbin   : Makefile 

Log message:
hook ocspcheck into the build



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 05:08:35

Modified files:
usr.sbin/ocspcheck: ocspcheck.c 

Log message:
Say no to two line error messages on failure



CVS: cvs.openbsd.org: src

2017-01-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/01/24 05:05:14

Modified files:
usr.sbin/acme-client: acctproc.c base64.c certproc.c chngproc.c 
  dnsproc.c fileproc.c http.c json.c main.c 
  netproc.c revokeproc.c rsa.c util.c 

Log message:
Replace comparisons between a constant or enum and an expression, with
a comparison between the expression and the constant or enum. This
significantly improves readability.

Transformed with coccinelle.

Requested by deraadt@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 05:00:19

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

Log message:
s/returns/exits/



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/01/24 04:59:41

Modified files:
sys/conf   : newvers.sh 

Log message:
logname(1) uses getlogin(2) to determine the user associated with the
current session. This way kernels built during 'make release' should
again have names such as deraadt@... bluhm@... instead of build@... in
most environments.

Issue reported by bluhm on icb eons ago.
ok deraadt



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 04:58:51

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

Log message:
Break run-on sentence into two.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/01/24 04:29:30

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

Log message:
sort previous;



CVS: cvs.openbsd.org: src

2017-01-24 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/01/24 03:59:10

Modified files:
libexec/ld.so/powerpc: rtld_machine.c 

Log message:
For consistentcy, use 'void *' with %p instead of 'char *'



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 03:57:48

Modified files:
usr.sbin/ocspcheck: http.c http.h 

Log message:
string terminator is called a NUL



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 03:54:48

Modified files:
usr.sbin/ocspcheck: ocspcheck.c 

Log message:
Actually load the cafile when providede, and error message cleanup



CVS: cvs.openbsd.org: src

2017-01-24 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/01/24 03:52:33

Modified files:
libexec/ld.so/m88k: rtld_machine.c 

Log message:
To format r_addr, use %p and cast to 'void *'.  From comparison with
other archs



CVS: cvs.openbsd.org: src

2017-01-24 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2017/01/24 03:49:14

Modified files:
usr.sbin/relayd: pfe.c pfe_filter.c relayd.c relayd.h 

Log message:
move the opening of /dev/pf from the parent process to the pfe process
where it is used.
Currently pf is opened on every reload, that will no longer be
possible in the future with pledged programms that do ioctls.
This prepares relayd for that change.

ok deraadt@, meinetwegen reyk@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 03:46:53

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

Log message:
sync



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 03:46:37

Modified files:
usr.sbin/ocspcheck: ocspcheck.c 

Log message:
use warn, I have errno here. noticed by theo



CVS: cvs.openbsd.org: src

2017-01-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/01/24 03:34:23

Modified files:
gnu/gcc/gcc/config/m88k: m88k.c openbsdelf.h 
gnu/usr.bin/gcc/gcc/config/m88k: m88k.c openbsdelf.h 

Log message:
Prevent too much reordering in the instruction prologue, in order to fulfill
the expectations of the DWARF code... and in order to get correct information.

Tested by aoyama@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/01/24 03:33:16

Modified files:
usr.sbin/ocspcheck: http.c 

Log message:
Yes the "if (const == val" idiom provides some safety, but it grates on
us too much.
ok beck jsing



CVS: cvs.openbsd.org: src

2017-01-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/01/24 03:23:11

Modified files:
sys/arch/arm64/arm64: support.S trap.c 

Log message:
Remove the [fs]u{byte,word,swintr} fetch(9) functions that have
been removed years ago.

>From miod



CVS: cvs.openbsd.org: src

2017-01-24 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/01/24 03:21:53

Modified files:
gnu/llvm/tools/lld/ELF: Driver.cpp 

Log message:
PIE-by-default.  Probably not suitable for upsttreaming in its current form.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/01/24 03:20:27

Modified files:
gnu/llvm/tools/lld/ELF: Config.h Driver.cpp Options.td 
Symbols.cpp SyntheticSections.cpp 

Log message:
Avoid allocating space for commons with ld -r.  Already pushed upstream.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 03:18:15

Modified files:
usr.sbin/ocspcheck: ocspcheck.c 

Log message:
knf



CVS: cvs.openbsd.org: src

2017-01-24 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/01/24 03:17:56

Modified files:
gnu/llvm/tools/lld/ELF: DriverUtils.cpp 

Log message:
Handle the OpenBSD-style major/minor shared library version scheme.

Don't try to upstream this; we are considering moving to a more standard
way that uses symbolic links to point the linker at the right version of
shared libraries.



CVS: cvs.openbsd.org: src

2017-01-24 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/01/24 03:14:14

Modified files:
distrib/miniroot: install.sub 

Log message:
ftplist.cgi provides the http server from previous installs as the
first line of its output. In contrast to the rest of the list of
mirror servers, this first line does not have any location info.

Only use this first line as default answer, if it has no location
info.

OK krw@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2017/01/24 03:08:30

Modified files:
sys/net: art.c bfd.c bpf.c bpfdesc.h bridgestp.c 
 ethertypes.h if.c if.h if_arp.h if_bridge.c 
 if_dl.h if_ethersubr.c if_gre.c if_gre.h 
 if_loop.c if_media.c if_media.h if_mpe.c 
 if_mpw.c if_pflog.c if_pflow.c if_pflow.h 
 if_pppvar.h if_pppx.c if_sppp.h if_spppsubr.c 
 if_tun.c if_vlan.c if_vlan_var.h ifq.h pf_if.c 
 pf_ioctl.c pf_table.c pfkey.c pfkeyv2.c 
 pfkeyv2.h pfkeyv2_convert.c 
 pfkeyv2_parsemessage.c pfvar.h pipex.c pipex.h 
 pipex_local.h ppp_tty.c radix.c raw_cb.c 
 route.c rtable.c slcompress.h trunklacp.c 

Log message:
A space here, a space there. Soon we're talking real whitespace
rectification.



Re: CVS: cvs.openbsd.org: src

2017-01-24 Thread Sebastian Benoit
Sebastian Benoit(be...@openbsd.org) on 2017.01.23 21:22:42 -0700:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   be...@cvs.openbsd.org   2017/01/23 21:22:42
> 
> Modified files:
>   usr.sbin/bgpd  : bgpd.c bgpd.h carp.c config.c control.c 
>kroute.c log.c log.h logmsg.c mrt.c parse.y 
>pfkey.c pftable.c printconf.c rde.c rde_attr.c 
>rde_decide.c rde_filter.c rde_prefix.c 
>rde_rib.c rde_update.c session.c timer.c util.c 
> 
> Log message:
> sync log.c from relayd et al to bgpd.
> 
> there is still a little difference regarding handling of the verbosity
> value that will be handled later.
> 
> ok claudio@ florian@

and renato@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/01/24 03:06:21

Modified files:
distrib/miniroot: install.sub 

Log message:
Don't allow any control and space characters in the answer to the
"System hostname" question.

OK tb@ krw@
'sure' deraadt@
positive feedback on the idea halex@



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 03:02:11

Modified files:
usr.sbin/ocspcheck: http.c 

Log message:
revert accidental commit of theo diff



CVS: cvs.openbsd.org: src

2017-01-24 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/01/24 02:59:45

Modified files:
usr.sbin/ocspcheck: http.c ocspcheck.c 

Log message:
Just don't bother with OpenSSL error strings, they are mostly
irrelevant and look gross here anyway.. we don't need them



CVS: cvs.openbsd.org: src

2017-01-24 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/01/24 02:58:00

Modified files:
usr.sbin/vmd   : vmm.c 

Log message:
SVM: vmd(8) support for SVM



  1   2   >