CVS: cvs.openbsd.org: src

2018-02-04 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/02/05 00:16:13

Modified files:
sbin/ifconfig  : ifconfig.8 

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2018-02-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/02/04 23:51:41

Modified files:
usr.bin/tmux   : mode-tree.c 

Log message:
Show if filter is active/no matches in modes.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/02/04 22:37:46

Modified files:
usr.bin/ssh: monitor.c ssh-pkcs11-client.c 

Log message:
Add a couple of non-negativity checks to avoid close(-1).

ok djm



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/02/04 22:36:49

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

Log message:
The file descriptors for socket, stdin, stdout and stderr aren't
necessarily distinct, so check if they are the same to avoid closing
the same fd several times.

ok djm



CVS: cvs.openbsd.org: src

2018-02-04 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/02/04 22:08:27

Modified files:
sbin/dhclient  : dhclient.c 

Log message:
Always run through state_preboot() when starting up or the
link status changes. Simplifies some logic.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2018/02/04 22:06:51

Modified files:
sys/net: bridgectl.c if_bridge.c 

Log message:
bcmp -> memcmp; kinda req'd / not-just-kinda ok'd by claudio



CVS: cvs.openbsd.org: src

2018-02-04 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/02/04 22:01:08

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

Log message:
remove unused function prototype



CVS: cvs.openbsd.org: src

2018-02-04 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/02/04 21:02:53

Modified files:
usr.bin/ssh: sshd.8 

Log message:
I accidentially a word



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/02/04 21:01:49

Modified files:
lib/libm/arch/amd64: s_copysign.S s_copysignf.S 

Log message:
Constants which can go into .rodata



CVS: cvs.openbsd.org: src

2018-02-04 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/02/04 20:59:49

Modified files:
sbin/dhclient  : dhclient.c 

Log message:
Nuke unused parameter to go_daemon().



CVS: cvs.openbsd.org: src

2018-02-04 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/02/04 20:55:54

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

Log message:
Change struct prefix a bit. Make the aspath pointer opaque and remove the
direct pointer to the pt_prefix struct. To getter functions prefix_aspath()
and prefix_peer() added to make access of the opaque pointers possible.
Looks good henning@ and benno@



CVS: cvs.openbsd.org: src

2018-02-04 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2018/02/04 20:52:37

Modified files:
usr.sbin/cron  : database.c funcs.h user.c 

Log message:
Pass a FILE * instead of a file descriptor into load_user() and
perform the fclose() in process_crontab().  Previously we were
closing the crontab fd twice--once in load_user() via fclose() and
once in process_crontab().  OK tb@



CVS: cvs.openbsd.org: src

2018-02-04 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2018/02/04 20:51:53

Modified files:
sys/net: bridgectl.c if_bridge.c if_bridge.h 
sbin/ifconfig  : brconfig.c ifconfig.8 

Log message:
implement an arp filter
allows arp (and rarp) requests and replies to be matched, including matching
based on the source and target host and protocol adresses, and thus control
over arp traffic and learning.
written for medical x-ray machines, but useful in many spread out L2 networks
ok claudio benno



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/02/04 20:35:09

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

Log message:
sync



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/02/04 20:16:10

Modified files:
bin/md5: crc.h 

Log message:
CKSUM_DIGEST_STRING_LENGTH bounding didn't include full range of size_t
and NUL
ok millert krw tb



CVS: cvs.openbsd.org: src

2018-02-04 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2018/02/04 18:47:03

Modified files:
lib/libtls : tls_ocsp.c 

Log message:
Do not bother NULLing pointers in memory that is freed immediately after.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/02/04 18:42:40

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

Log message:
Add a comment why it is OK to set the tableid to 0 for Adj-RIB-In/Out.
Requested by henning@



CVS: cvs.openbsd.org: src

2018-02-04 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/02/04 18:36:45

Modified files:
usr.sbin/bgpd  : rde_filter.c 

Log message:
prefix check must be last because the prefixlen check does an immediate return.
This will be rewritten soon so just do the quick fix now.
Found and OK benno@



CVS: cvs.openbsd.org: src

2018-02-04 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2018/02/04 17:52:24

Modified files:
lib/libtls : tls_config.c tls_ocsp.c tls_util.c tls_verify.c 

Log message:
Be consistent with the goto label names used in libtls code.

No change to generated assembly.



CVS: cvs.openbsd.org: www

2018-02-04 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2018/02/04 17:41:27

Modified files:
faq: faq14.html 

Log message:
remove an extra "the" that snuck in; reported by namtsui



CVS: cvs.openbsd.org: xenocara

2018-02-04 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2018/02/04 15:56:26

Modified files:
app/cwm: calmwm.c calmwm.h cwm.1 util.c xevents.c 

Log message:
Slightly expand and expose verbose debugging.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/02/04 15:09:34

Modified files:
bin/ls : ls.c 

Log message:
use sizeof, rather than the constant.  on change in binary.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/02/04 14:53:54

Modified files:
bin/ls : ls.c 

Log message:
repair ugly indents



CVS: cvs.openbsd.org: src

2018-02-04 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/02/04 14:11:32

Modified files:
.  : Makefile.cross 

Log message:
Don't assume that we use LLVM's ld(1) if we use clang(1) as main system
compiler.  Only handle this case when LLD was actually installed during
the cross-compiler setup.  Unbreaks armv7 after switching to clang since
it uses binutils' ld(1).



CVS: cvs.openbsd.org: src

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/02/04 13:41:58

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

Log message:
Expand Type strings by one space, to fit ld.so, in the same ugly way "exe "
was being handled.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/02/04 13:29:59

Modified files:
share/man/man4 : wsmouse.4 

Log message:
Document the compat-mode settings.

Thanks to Ingo for his help.

ok schwarze@



CVS: cvs.openbsd.org: www

2018-02-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:www
Changes by: dera...@cvs.openbsd.org 2018/02/04 13:14:15

Modified files:
.  : hackathons.html 
Added files:
images/hackathons: a2k18-s.gif a2k18.gif 

Log message:
a2k18 has begun



CVS: cvs.openbsd.org: src

2018-02-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/02/04 03:10:40

Modified files:
usr.bin/tmux   : tmux.h tty-term.c tty.c 

Log message:
Upstream ncurses has introduced terminfo capabilities to specify RGB
colour ("true" or "direct" colour). These consist of new entries (such
as "xterm-direct") which have a different setaf/setab implementation,
colors and pairs set to 0x100 and 0x1, and a new RGB flag.

The setaf/setab definitions seem to be geared towards what ncurses (or
emacs maybe) needs, in that the new versions do only ANSI and RGB
colours (they can't be used for the 256 colour palette); they rely on
the silly ISO colon-separated version of SGR; and they use a weird
multiplication scheme so they still only need one argument. The higher
values of colors and pairs require a recent ncurses to parse.

tmux can use the RGB flag to detect RGB colour support (keeping the old
Tc extension for backwards compatibility for now). However, as we still
want to send 256 colour information unchanged when possible, the new
setaf/setab are awkward. So when RGB is present, reserve setaf/setab
only for ANSI colours and use the escape sequences directly for 256 and
RGB colours. (To my knowledge no recent terminal uses unusual escape
sequences for these in any case.)



CVS: cvs.openbsd.org: src

2018-02-04 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/02/04 03:09:02

Modified files:
share/man/man4 : ifmedia.4 

Log message:
Document 802.11ac media types and fix docs for the 11n ones while here.
suggested by and ok jmc@



CVS: cvs.openbsd.org: src

2018-02-04 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/02/04 03:06:51

Modified files:
sys/net: if_media.h 

Log message:
Add media types for 802.11 AC.
The first driver to make use of these will probably be bwfm(4).
typos spotted by and ok phessler kettenis