CVS: cvs.openbsd.org: src

2016-03-07 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2016/03/08 00:10:01

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
additional debug printfs



CVS: cvs.openbsd.org: www

2016-03-07 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2016/03/07 20:54:07

Modified files:
.  : want.html 

Log message:
Remove Rhine PCI ethernet.



CVS: cvs.openbsd.org: src

2016-03-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2016/03/07 19:05:00

Modified files:
usr.sbin/npppd/npppd: npppd_auth.c 

Log message:
Fix: "authconf.users_file_path" is a char[] but is checked as a char*.

Diff from Mathieu Papineau (via Claer)



CVS: cvs.openbsd.org: src

2016-03-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2016/03/07 18:38:04

Modified files:
usr.sbin/npppd/npppd: npppd_local.h 

Log message:
Remove __cplusplus include guard.

Diff from Tiago Silva



CVS: cvs.openbsd.org: www

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 18:14:03

Modified files:
faq: faq14.html 

Log message:
Add two sentences about the opendev(3) function to the general intro
14.1 - disks and partitions.



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 17:16:47

Modified files:
etc/mtree  : special 

Log message:
adjust for lpd(8) top spool dir permissions change, so security(8)
won't complain in the daily(8) mail.

ok ajacoutot@



CVS: cvs.openbsd.org: www

2016-03-07 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:www
Changes by: ajacou...@cvs.openbsd.org   2016/03/07 17:07:50

Modified files:
faq: current.html 

Log message:
Mention lpd(8) top spool dir permissions change.

ok sthen@ deraadt@



CVS: cvs.openbsd.org: www

2016-03-07 Thread Tim van der Molen
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 16:36:00

Modified files:
.  : plus59.html 

Log message:
The very last 5.9 entries. Non plus ultra. From Rafael Neves with tweaks.



Re: CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
On Mon, Mar 07, 2016 at 03:49:45PM -0700, Theo Buehler wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   t...@cvs.openbsd.org2016/03/07 15:49:45
> 
> Modified files:
>   games/fortune/fortune: fortune.c 
> 
> Log message:
> eliminate do_malloc() and do_free().
> 
> These are wrappers for malloc(3) and free(3) with NULL checks. do_free()
> is pointless since free() already checks for NULL.  do_malloc() is used
> only three times, once asprintf(3) seems more appropriate, and for just
> two calls the benefit of a custom wrapper is minimal.
> 
> ok millert@
> 

also ok mmcc@, of course :)



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 15:49:45

Modified files:
games/fortune/fortune: fortune.c 

Log message:
eliminate do_malloc() and do_free().

These are wrappers for malloc(3) and free(3) with NULL checks. do_free()
is pointless since free() already checks for NULL.  do_malloc() is used
only three times, once asprintf(3) seems more appropriate, and for just
two calls the benefit of a custom wrapper is minimal.

ok millert@



CVS: cvs.openbsd.org: www

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 15:15:02

Modified files:
faq: faq14.html 

Log message:
natano@ pointed out that it would be preferable to use abbreviated
forms for the disk name, so we don't have to bother to think whether
block or character devices are needed. do that, where possible.



CVS: cvs.openbsd.org: src

2016-03-07 Thread Martin Natano
CVSROOT:/cvs
Module name:src
Changes by: nat...@cvs.openbsd.org  2016/03/07 14:47:04

Modified files:
sbin/clri  : Makefile clri.c 

Log message:
Use opendev() instead of a plain open().
ok deraadt



CVS: cvs.openbsd.org: www

2016-03-07 Thread Tim van der Molen
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 14:40:47

Modified files:
.  : plus59.html 

Log message:
February 1-15. From Rafael Neves with tweaks.



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 12:49:38

Modified files:
games/fortune/fortune: fortune.c 

Log message:
Remove unused fields posfile and was_pos_file from FILEDESC and
simplify is_fortfile() accordingly.
The last use of them was guarded by OK_TO_WRITE_DISK, which was
unifdef'ed in revision 1.43 last fall.

tweak + ok mestre@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2016/03/07 12:41:50

Modified files:
sys/dev/ic : r92creg.h 
sys/dev/pci: if_rtwn.c 
sys/dev/usb: if_urtwn.c 
Removed files:
sys/dev/pci: if_rtwnreg.h 
sys/dev/usb: if_urtwnreg.h 

Log message:
For rtwn(4) and urtwn(4) inline driver-specific definitions in their
respective .c files.
ok mpi@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Michael McConville
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/03/07 12:33:26

Modified files:
lib/libssl/src/ssl: tls1.h 
sbin/iked  : pfkey.c 
sys/net: if_types.h 
sys/netinet: ip_icmp.h 
usr.sbin/snmpd : mib.h 
usr.sbin/tcpdump: ike.h print-domain.c 

Log message:
http -> https for IETF/IANA URLs in comments



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 12:16:06

Modified files:
sbin/mknod : mknod.c 

Log message:
Use the full idiom for error checking with strtoul(3), as
exemplified in the man page. Requested by deraadt@.

Joint work with natano@
input and ok espie@, deraadt@



CVS: cvs.openbsd.org: www

2016-03-07 Thread Tim van der Molen
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 11:58:34

Modified files:
.  : plus59.html 

Log message:
January 16-31. From Rafael Neves with tweaks.



CVS: cvs.openbsd.org: www

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 12:02:47

Modified files:
faq: faq14.html 

Log message:
use raw device for newfs. From Daniel Jakots



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 11:56:33

Modified files:
bin/cp : cp.c 

Log message:
Make cp -i behave as mv -i or rm -i, independently of whether stdin
is a tty or not. From Timo Buhrmester.

ok jca@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2016/03/07 12:02:43

Modified files:
usr.bin/ssh: auth-options.c auth-rh-rsa.c auth-rhosts.c 
 auth.c auth.h auth2-hostbased.c canohost.c 
 canohost.h channels.c monitor.c monitor_wrap.c 
 monitor_wrap.h opacket.h packet.c packet.h 
 servconf.c serverloop.c session.c session.h 
 ssh.c sshd.c 

Log message:
refactor canohost.c: move functions that cache results closer to the
places that use them (authn and session code). After this, no state is
cached in canohost.c

feedback and ok markus@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2016/03/07 11:44:00

Modified files:
sys/ddb: db_dwarf.c 
sys/dev/pci: mpii.c 
sys/isofs/cd9660: cd9660_vfsops.c 
sys/kern   : kgdb_stub.c vfs_cache.c 
sys/lib/libkern: __main.c 
sys/lib/libkern/arch/powerpc: __eabi.c 
sys/net: if.c route.c 
sys/netinet: ip_ah.c ip_divert.c ip_esp.c ip_ipip.c 
 ip_mroute.c raw_ip.c tcp_input.c tcp_subr.c 
 tcp_timer.c udp_usrreq.c 
sys/netinet6   : frag6.c ip6_divert.c mld6.c raw_ip6.c 
sys/scsi   : scsi_base.c 
sys/uvm: uvm_addr.c uvm_fault.c 

Log message:
Sync no-argument function declaration and definition by adding (void).
ok mpi@ millert@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2016/03/07 11:33:10

Modified files:
sys/sys: select.h 

Log message:
Make __fd_isset() take a const fd_set * param, to avoid upsetting c++

ok zhuk@ deraadt@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2016/03/07 11:05:41

Modified files:
sys/dev/ic : r92creg.h 
sys/dev/pci: if_rtwn.c if_rtwnreg.h 
sys/dev/usb: if_urtwn.c if_urtwnreg.h 

Log message:
Merge TX/RX descriptors used by rtwn(4) and urtwn(4) into common header file.
Based on a larger diff by Mikhail, with small differences in naming things.
ok mpi@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/03/07 10:46:47

Modified files:
distrib/sets/lists/base: md.alpha md.amd64 md.armish md.armv7 
 md.hppa md.hppa64 md.i386 md.landisk 
 md.loongson md.luna88k md.macppc 
 md.octeon md.sgi md.socppc md.sparc 
 md.sparc64 md.vax md.zaurus 
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 10:13:01

Modified files:
gnu/usr.bin/cvs: configure 

Log message:
regen



CVS: cvs.openbsd.org: src

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2016/03/07 10:12:33

Modified files:
gnu/usr.bin/cvs: configure.in 

Log message:
There is a mknod(2) call hidden deep in the guts of cvs(1) that
could in principle be called at any point during runtime.

Instead of adding "dpath" to the relevant pledges, disable the
code path itself. Now instead of hitting a brutal abort(3), you
will just get an error message.

autoconf handholding + ok jca@



CVS: cvs.openbsd.org: www

2016-03-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/03/07 09:48:51

Modified files:
faq: faq14.html 

Log message:
yur -> your spotted by Jason Filley
+ a few more typos found with aspell



CVS: cvs.openbsd.org: src

2016-03-07 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2016/03/07 09:21:48

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

Log message:
fix error in documentation of `ca' keyword

From: Sevan Janiyan 



CVS: cvs.openbsd.org: src

2016-03-07 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2016/03/07 09:17:36

Modified files:
sys/dev/pci: if_rtwn.c if_rtwnreg.h 
sys/dev/usb: if_urtwn.c if_urtwnreg.h 
Added files:
sys/dev/ic : r92creg.h 

Log message:
Merge rtwn(4) and urtwn(4) register definitions into a common header file.
Based on a larger diff by Mikhail.
ok mpi@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2016/03/07 06:47:53

Modified files:
share/man/man4 : acx.4 ath.4 athn.4 pgt.4 ral.4 rtw.4 rum.4 
 ural.4 

Log message:
In man page hostname.if examples showing how to configure hostap, put lines
configuring addresses last. Avoids problems where the interface is put up
before wireless settings are properly configured.
Prompted by questions from Matthew ("chohag") on bugs@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2016/03/07 06:48:25

Modified files:
games/atc  : main.c 

Log message:
remove -u? from usage();



CVS: cvs.openbsd.org: src

2016-03-07 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2016/03/07 06:21:51

Modified files:
sys/arch/sparc64/dev: consinit.c fb.c pcons.c tda.c 
sys/arch/sparc64/include: ctlreg.h db_machdep.h psl.h 
sys/arch/sparc64/sparc64: autoconf.c cache.c clock.c 
  db_interface.c machdep.c ofw_machdep.c 
  openfirm.c 
sys/arch/sparc64/stand/ofwboot: boot.c 

Log message:
Sync no-argument function declaration and definition by adding (void).
ok mpi@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Ricardo Mestre
CVSROOT:/cvs
Module name:src
Changes by: mes...@cvs.openbsd.org  2016/03/07 05:07:57

Modified files:
games/atc  : atc.6 main.c 
games/banner   : banner.c 
games/bcd  : bcd.c 
games/boggle/boggle: bog.c 
games/bs   : bs.c 
games/cribbage : crib.c 
games/factor   : factor.c 
games/fish : fish.c 
games/fortune/fortune: fortune.c 
games/fortune/strfile: strfile.c 
games/fortune/unstr: unstr.c 
games/grdc : grdc.c 
games/hunt/hunt: hunt.c 
games/morse: morse.c 
games/number   : number.c 
games/phantasia: setup.c 
games/pig  : pig.c 
games/pom  : pom.c 
games/ppt  : ppt.c 
games/primes   : primes.c 
games/quiz : quiz.c 
games/random   : random.c 
games/robots   : main.c 
games/snake: snake.c 
games/tetris   : tetris.c 
games/wump : wump.c 

Log message:
- General changes:
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)

- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)

OK tb@ after his suggestions



CVS: cvs.openbsd.org: src

2016-03-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/03/07 04:26:43

Modified files:
sys/ddb: db_elf.c db_sym.c db_sym.h 

Log message:
boolean_t/FALSE/TRUE -> int/0/1



CVS: cvs.openbsd.org: src

2016-03-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/03/07 04:00:36

Modified files:
sys/netinet: if_ether.c 
sys/netinet6   : nd6.c 

Log message:
Do not remove RTF_STATIC L2 entries from the routing table.

This restore the previous behavior without looking at the reference
counter of route entries.

Static entries might not have a cloning route to re-create them and
when their timer expires they were completly gone as found the hardway
by matthieu@.

ok matthieu@



CVS: cvs.openbsd.org: src

2016-03-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/03/07 03:49:03

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

Log message:
Fix end signature check, from Patrick Wildt.

ok dlg@