CVS: cvs.openbsd.org: src

2010-08-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2010/08/03 00:30:20

Modified files:
sys/kern   : vfs_bio.c 

Log message:
matthew did not commit the diff he passed around for us to inspect...
repair that situation.  Darn newbies...



CVS: cvs.openbsd.org: src

2010-08-03 Thread Pierre-Yves Ritschard
CVSROOT:/cvs
Module name:src
Changes by: p...@cvs.openbsd.org2010/08/03 02:24:23

Modified files:
usr.sbin/ypldap: yp.c 

Log message:
Fix a leak in ypldap. Found (and correct diff) from
plalonde (at) overnet.qc.ca

Prompted by deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2010/08/03 04:08:03

Modified files:
usr.sbin/tcpdump: print-gtp.c 

Log message:
Fix a usage of logical and where binary and was intended.
Spotted by Mike Belopuhov. ok jsing@ deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2010/08/03 05:23:37

Modified files:
lib/libc/citrus: citrus_none.c 

Log message:
When the target pointer 'pwcs' passed to mbsrtowcs() is NULL, mbsrtowcs()
is supposed to ignore the 'n' parameter and return the number of wide
characters needed to represent the given multi-byte character sequence.

However, in the special case where 'pwcs' is NULL and 'n' is zero, our
mbsrtowcs() implementation for single-byte locales mistakenly returned zero.
Before the UTF-8 locale was added, this bug was invisible to callers of
mbstowcs() because mbstowcs() handled this special case itself.
But our new mbstowcs() implementation simply forwards to the locale-specific
mbsrtowcs() implementation and expects it to do the right thing.

The awesome window manager's Run: command prompt uses mbstowcs() to
measure how many (possibly multi-byte) characters a user has typed, and
due to this bug would always be tricked into thinking the user had entered
zero characters when a single-byte locale was used.

Found after prodding by dcoppa.

ok deraadt sthen espie



CVS: cvs.openbsd.org: src

2010-08-03 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2010/08/03 05:59:47

Modified files:
sys/dev/pci/drm: i915_drv.c i915_drv.h 

Log message:
Save/restore BLC_HIST_CTL as well at suspend/resume time; which allows
the x40 LCD to light up after unsuspend.
https://bugzilla.kernel.org/attachment.cgi?id=23409
https://bugzilla.kernel.org/show_bug.cgi?id=10985
ok oga



CVS: cvs.openbsd.org: src

2010-08-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2010/08/03 08:07:27

Modified files:
usr.sbin/pkg_add/OpenBSD: PackingElement.pm 

Log message:
use proper log idiom (blanket okay from theo for pkg_add careful changes for
the time being)



CVS: cvs.openbsd.org: src

2010-08-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2010/08/03 08:08:49

Modified files:
usr.sbin/pkg_add/OpenBSD: Update.pm 

Log message:
bug-fix: during updates, only set oldfound after we found a matching pkgpath.
that way, we detect pkgpath problems as can't update instead of silently
ignoring them (gconf2 issue).



CVS: cvs.openbsd.org: src

2010-08-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2010/08/03 08:10:30

Modified files:
usr.sbin/pkg_add: TODO 

Log message:
shrink! :)



CVS: cvs.openbsd.org: src

2010-08-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2010/08/03 08:10:12

Modified files:
usr.sbin/pkg_add/OpenBSD: SharedItems.pm Log.pm 

Log message:
sort journal messsages in a better way, put - before +, so that one can
see deinstall info before new install info (prompted by a comment from
tedu@)



CVS: cvs.openbsd.org: src

2010-08-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2010/08/03 10:11:57

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

Log message:
Correct use of logical and where binary and was intended.
Spotted by lint, but mirrors a similiar change in the
original FreeBSD code from over a year ago.

ok deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2010/08/03 10:21:52

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

Log message:
Disable hardware VLAN stripping/insertion on 8257[56] for now.  While
stripping works insertion seems to have trouble in certain conditions,
which needs to be fixed before we want to enable hardware support for this.

ok deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2010/08/03 10:32:40

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

Log message:
Use the proper flag for re-enabling certain hardware events (power btn,
sleep btn). The (incorrect) flag prevoiously used coincidentally had the
same value, so this shouldn't cause any different behavior than before.

tested on a variety of machines (i386, amd64, sp, mp) - no behavioral
change seen

ok deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2010/08/03 10:39:34

Modified files:
sys/dev/pci: if_em_hw.c if_em_hw.h 

Log message:
Add support for 82576 fiber adapters based on Intel code in FreeBSD.
Thanks to Fridiric URBAN for setting up a test network to develop this on.
Tested by various people on copper adapters and fiber support
also tested by mickey.

ok deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Marco Peereboom
CVSROOT:/cvs
Module name:src
Changes by: ma...@cvs.openbsd.org   2010/08/03 10:55:06

Modified files:
sys/dev/acpi   : acpidev.h acpiec.c 

Log message:
Add busy flag so that we don't act on a SCI until a command in progress
completes.  Written with jordan.

ok deraadt



CVS: cvs.openbsd.org: src

2010-08-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2010/08/03 11:31:52

Modified files:
usr.sbin/pkg_add/OpenBSD/ProgressMeter: Term.pm 

Log message:
missed one if (continued) test, so simplify logic: test continue beforehand.
fixes display after ^Z/fg.

(problem pointed out by Theo)



CVS: cvs.openbsd.org: src

2010-08-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2010/08/03 12:26:25

Modified files:
sys/dev/pci: if_iwi.c if_iwivar.h if_wpi.c if_ipw.c 
 if_ipwvar.h 

Log message:
Bring the suspend/resume code of all the Intel wireless drivers in line with
iwn(4) again.

ok deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2010/08/03 12:42:41

Modified files:
sbin/iked  : parse.y 
sbin/ipsecctl  : parse.y 
sbin/pfctl : parse.y 
usr.sbin/bgpd  : parse.y 
usr.sbin/btctl : parse.y 
usr.sbin/btd   : parse.y 
usr.sbin/dvmrpd: parse.y 
usr.sbin/hostapd: parse.y 
usr.sbin/ifstated: parse.y 
usr.sbin/ldapd : parse.y 
usr.sbin/ldpd  : parse.y 
usr.sbin/ntpd  : parse.y 
usr.sbin/ospf6d: parse.y 
usr.sbin/ospfd : parse.y 
usr.sbin/relayd: parse.y 
usr.sbin/ripd  : parse.y 
usr.sbin/smtpd : parse.y 
usr.sbin/snmpd : parse.y 
usr.sbin/ypldap: parse.y 

Log message:
fix linecount bug with comments spanning multiple lines
problem reported with the obvious fix for bgpd by Sebastian Benoit
benoit-lists at fb12.de, also PR 6432
applied to all the others by yours truly. ok theo
isn't it amazing how far this parser (and more) spread?



Re: CVS: cvs.openbsd.org: src

2010-08-03 Thread Henning Brauer
* Henning Brauer henn...@cvs.openbsd.org [2010-08-03 20:43]:
 CVSROOT:  /cvs
 Module name:  src
 Changes by:   henn...@cvs.openbsd.org 2010/08/03 12:42:41
 
 Modified files:
   sbin/iked  : parse.y 
   sbin/ipsecctl  : parse.y 
   sbin/pfctl : parse.y 
   usr.sbin/bgpd  : parse.y 
   usr.sbin/btctl : parse.y 
   usr.sbin/btd   : parse.y 
   usr.sbin/dvmrpd: parse.y 
   usr.sbin/hostapd: parse.y 
   usr.sbin/ifstated: parse.y 
   usr.sbin/ldapd : parse.y 
   usr.sbin/ldpd  : parse.y 
   usr.sbin/ntpd  : parse.y 
   usr.sbin/ospf6d: parse.y 
   usr.sbin/ospfd : parse.y 
   usr.sbin/relayd: parse.y 
   usr.sbin/ripd  : parse.y 
   usr.sbin/smtpd : parse.y 
   usr.sbin/snmpd : parse.y 
   usr.sbin/ypldap: parse.y 
 
 Log message:
 fix linecount bug with comments spanning multiple lines

err, not comments. macros. or rather, anything quoted.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



CVS: cvs.openbsd.org: src

2010-08-03 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2010/08/03 13:37:17

Modified files:
sys/scsi   : sd.c 

Log message:
Don't attempt to set the read or write caches on usb disks. It
breaks at least one previously working device, as discovered by
na...@. dlg@ confirmed other kernels also avoid attempting this
operation on usb disks.

ok dlg@ deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2010/08/03 14:12:01

Modified files:
etc: MAKEDEV.common 

Log message:
Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2010/08/03 14:16:23

Modified files:
etc/etc.alpha  : MAKEDEV 
etc/etc.amd64  : MAKEDEV 
etc/etc.armish : MAKEDEV 
etc/etc.aviion : MAKEDEV 
etc/etc.hp300  : MAKEDEV 
etc/etc.hppa   : MAKEDEV 
etc/etc.hppa64 : MAKEDEV 
etc/etc.i386   : MAKEDEV 
etc/etc.landisk: MAKEDEV 
etc/etc.loongson: MAKEDEV 
etc/etc.luna88k: MAKEDEV 
etc/etc.mac68k : MAKEDEV 
etc/etc.macppc : MAKEDEV 
etc/etc.mvme68k: MAKEDEV 
etc/etc.mvme88k: MAKEDEV 
etc/etc.palm   : MAKEDEV 
etc/etc.sgi: MAKEDEV 
etc/etc.socppc : MAKEDEV 
etc/etc.sparc  : MAKEDEV 
etc/etc.sparc64: MAKEDEV 
etc/etc.vax: MAKEDEV 
etc/etc.zaurus : MAKEDEV 

Log message:
regen



CVS: cvs.openbsd.org: xenocara

2010-08-03 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2010/08/03 15:22:32

Modified files:
driver/xf86-input-usbtablet/man: usbtablet.man 

Log message:
Remove empty .TP



CVS: cvs.openbsd.org: xenocara

2010-08-03 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2010/08/03 15:26:15

Modified files:
doc/xorg-docs/man/general: X.man 

Log message:
Remove some of the obsolete stuff.



CVS: cvs.openbsd.org: src

2010-08-03 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2010/08/03 16:12:27

Modified files:
usr.bin/mg : theo.c 

Log message:
that had to be added



CVS: cvs.openbsd.org: src

2010-08-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2010/08/03 16:54:12

Modified files:
sys/dev/acpi   : acpiprt.c 

Log message:
Remove old code that figures out the PCI bus number.  The new code gets some
corner cases right that the old code messed up.  As a bonus, this noticibly
speeds up booting my Dell XPS M1330.

ok deraadt@, marco@, jordan@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Jacob Meuser
CVSROOT:/cvs
Module name:src
Changes by: jake...@cvs.openbsd.org 2010/08/03 16:58:58

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

Log message:
if interrupt mapping fails, say so
ok deraadt



CVS: cvs.openbsd.org: src

2010-08-03 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2010/08/03 17:06:02

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

Log message:
Trivial patch to get correct spacing from the recently introduced
user-defined string \*(Pu  (punctuation character list)
by using non-breaking non-compressing instead of normal spaces.
Works with mandoc, new groff and even with old groff.
Tree is locked, but deraadt@ says i'm still allowed to polish manuals.



CVS: cvs.openbsd.org: src

2010-08-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2010/08/03 23:37:01

Modified files:
usr.bin/ssh: ssh.1 ssh_config.5 sshd.8 

Log message:
Remove mentions of weird addr/port alternate address format for IPv6
addresses combinations. It hasn't worked for ages and we have supported
the more commen [addr]:port format for a long time. ok jmc@ markus@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2010/08/03 23:40:39

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

Log message:
tighten the rules for certificate encoding by requiring that options
appear in lexical order and make our ssh-keygen comply. ok markus@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2010/08/03 23:42:48

Modified files:
usr.bin/ssh: auth.c auth2-hostbased.c authfile.c authfile.h 
 ssh-keysign.8 ssh-keysign.c ssh.c 

Log message:
enable certificates for hostbased authentication, from Iain Morgan;
looks ok markus@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2010/08/03 23:49:22

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

Log message:
commited the wrong version of the hostbased certificate diff; this
version replaces some strlc{py,at} verbosity with xasprintf() at
the request of markus@



CVS: cvs.openbsd.org: src

2010-08-03 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2010/08/03 23:55:29

Modified files:
regress/sys/kern/kqueue: kqueue-process.c 

Log message:
Confirm that a NOTE_EXIT knote is delivered when the child exits
Fix a C thinko



CVS: cvs.openbsd.org: src

2010-08-03 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2010/08/03 23:57:21

Modified files:
regress/sys/kern/kqueue: Makefile 

Log message:
tun* interfaces are now automatically destroyed on last close when
originally created by opening /dev/tun*



CVS: cvs.openbsd.org: src

2010-08-03 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2010/08/03 23:58:17

src/regress/sys/kern/rfork/kqueue

Update of /cvs/src/regress/sys/kern/rfork/kqueue
In directory cvs.openbsd.org:/tmp/cvs-serv26782/kqueue

Log Message:
Directory /cvs/src/regress/sys/kern/rfork/kqueue added to the repository