CVS: cvs.openbsd.org: src

2018-11-14 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/14 20:22:01

Modified files:
sbin/pfctl : parse.y 

Log message:
scrub opts dont set tos, so remove it from the scrub_opts struct

ok deraadt@



CVS: cvs.openbsd.org: src

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

Modified files:
libexec/getty  : main.c pathnames.h 

Log message:
Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't work
anymore with unveil wired to /usr/bin/login.  So let's parse gettytab a bit
earlier to learn which login path to unveil. Later in the loop gettytab is
re-parsed, if the login changes re-exec getty to reach the unveil from the top.
ok millert, also discussed with mestre



CVS: cvs.openbsd.org: www

2018-11-14 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2018/11/14 19:01:58

Modified files:
faq: current.html 

Log message:
tweak previous



CVS: cvs.openbsd.org: src

2018-11-14 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/14 17:05:00

Modified files:
sys/net: if_gre.c 

Log message:
the variable holding the ip tos should be called tos, not ttl.

no functional change.



CVS: cvs.openbsd.org: src

2018-11-14 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/14 16:55:04

Modified files:
sys/netinet: ip_ecn.c ip_ecn.h ip_ipip.c 
sys/net: if_gif.c 

Log message:
provide ip_tos_patch() for setting ip_tos and patching the ipv4 cksum.

previously the gif code would patch the tos field and not recalc
the cksum, which would cause ip input code to drop the packet due
to a cksum failure. the ipip code patched ip_tos and unconditionally
recalculated the cksum, making it correct, but also wiping out any
errors that may have been present before the recalculation. updating
the cksum rather than replacing it lets cksum failures still fire.

ip_tos_patch() is provided in the ecn code since it's because of ecn
propagation that we need to update the tos field. internally it
works like pf_patch_8 and pf_cksum_fixup, but since pf is optional
it rolls its own code. procter may fix that in the future...

ok claudio@



CVS: cvs.openbsd.org: www

2018-11-14 Thread Klemens Nanni
CVSROOT:/cvs
Module name:www
Changes by: k...@cvs.openbsd.org2018/11/14 14:44:39

Modified files:
faq: current.html 

Log message:
note future ifconfig vlan option removal



CVS: cvs.openbsd.org: src

2018-11-14 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/11/14 14:25:04

Modified files:
sbin/ifconfig  : ifconfig.c 

Log message:
Warn on deprecated 'vlan' and 'vlandev' option usage

These were superseeded by 'vnetid' and 'parent' in june 2017 and will be
removed in the future.

"Looks right" deraadt, OK benno



CVS: cvs.openbsd.org: src

2018-11-14 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2018/11/14 13:43:48

Modified files:
lib/libedit: Makefile 
gnu/lib/libreadline: Makefile 
lib/libcurses  : shlib_version 

Log message:
Record an inter-library dependency on libcurses in libedit and libreadline,
avoiding runtime failures on architectures using ld.lld. Also add a note to
libcurses shlib_version reminding about bumps (as done with libcrypto/libssl).

Thanks guenther@ for suggestions of tests involving library bumps and jca@
for doing these tests and hint about DPADD.

Looks good kettenis@, ok jca@



CVS: cvs.openbsd.org: xenocara

2018-11-14 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2018/11/14 12:22:51

Modified files:
app/cwm: menu.c 

Log message:
Stop asking for events (NoEventMask) from menu window once done with
the menu (we don't destroy it, only unmap).



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/11/14 10:52:48

Modified files:
sys/kern   : subr_extent.c 

Log message:
Revert previous, it breaks regress.



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/11/14 10:48:52

Modified files:
sys/kern   : subr_extent.c 

Log message:
Userland malloc(3) & free(3) take only one argument.



CVS: cvs.openbsd.org: src

2018-11-14 Thread Ricardo Mestre
CVSROOT:/cvs
Module name:src
Changes by: mes...@cvs.openbsd.org  2018/11/14 10:24:14

Modified files:
lib/libssl : ssl_lib.c 

Log message:
Fix wrong sizeof argument by using 'uint16_t *', with minor nit from tb@,
instead of 'uint16_t'

Found with llvm's static analyzer, noticed that it was also already reported in
Coverity CID 155890 and to ensure this was correct also inspected OpenSSL's
equivalent code.

OK tb@ and jsing@



CVS: cvs.openbsd.org: src

2018-11-14 Thread Ricardo Mestre
CVSROOT:/cvs
Module name:src
Changes by: mes...@cvs.openbsd.org  2018/11/14 10:24:01

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

Log message:
Plug memory leak in host()'s error code path

OK claudio@



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/11/14 10:18:18

Modified files:
sys/dev/usb: usb.c 

Log message:
free(9) sizes for configuration descriptors, missed in previous.



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/11/14 10:07:44

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

Log message:
Batch copyout(9)s in preparation for finer locking.

Tested by Hrvoje Popovski, inputs and ok visa@



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/11/14 10:00:33

Modified files:
sys/dev/usb: ugen.c usb_subr.c 

Log message:
free(9) sizes for configuration descriptors.

ok tedu@, visa@



CVS: cvs.openbsd.org: src

2018-11-14 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/11/14 08:53:31

Modified files:
bin/mv : mv.1 

Log message:
mv imitates, but no longer uses, cp and rm to cross filesystems.



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/11/14 08:16:09

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

Log message:
Remove slurpit definition. Leftover from earlier cleanup by otto@.



CVS: cvs.openbsd.org: src

2018-11-14 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/11/14 07:03:36

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

Log message:
Remove an unneeded union wrapping the skipsteps pointer.
OK phessler@



CVS: cvs.openbsd.org: src

2018-11-14 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/11/14 05:14:41

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

Log message:
Adjust comment.



CVS: cvs.openbsd.org: src

2018-11-14 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/11/14 03:59:33

Modified files:
usr.bin/sed: extern.h main.c process.c sed.1 

Log message:
Make sed's -i flag more compatible with what gsed does.
- Reset the hold-space in between files
- quit the editor as soon as a 'q' command is found
- Make sure the temp-file is written back to the original file if we quit
the editor

temp-file not written back issue found by Time Chase.
Lots of feedback from millert@ and schwarze@
OK millert@



CVS: cvs.openbsd.org: www

2018-11-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2018/11/14 02:23:26

Modified files:
openssh: specs.html 

Log message:
Remove unneeded line break.



CVS: cvs.openbsd.org: www

2018-11-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2018/11/14 02:22:19

Modified files:
openssh: specs.html 

Log message:
draft-rsa-dsa-sha2-256-03 is now RFC8332.  Pointed out by jjelen at redhat.com
vi bz#2929.



CVS: cvs.openbsd.org: www

2018-11-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2018/11/14 02:18:49

Modified files:
openssh: specs.html 

Log message:
draft-ssh-ext-info-04 is now RFC 8308.  Pointed out by jjelen at redhat.com
via bz#2929.



CVS: cvs.openbsd.org: www

2018-11-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2018/11/14 02:13:16

Modified files:
openssh: specs.html 

Log message:
Update IPQoS RFCs.