summaryrefslogtreecommitdiff
path: root/xserver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2011-08-20 17:30:38 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2011-08-20 17:30:38 +0000
commit150c38b97a98ae495f1d8f2c98420ac65a6c69a3 (patch)
treef17479186258340eff315c56231a5b0e1acbc6e7 /xserver
parent40ec3b5d140e3cb41490d3a80d8f424e57821196 (diff)
Remove warnings emitted when a device can't be opened. This
is just noise and now happens while the X autoconfiguration code probes all /dev/wsmouse<n> devices. If the error matters, the driver will emit a proper error nevertheless.
Diffstat (limited to 'xserver')
-rw-r--r--xserver/os/privsep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xserver/os/privsep.c b/xserver/os/privsep.c
index cdeeac9ff..87ea54330 100644
--- a/xserver/os/privsep.c
+++ b/xserver/os/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.17 2011/01/28 19:37:55 matthieu Exp $ */
+/* $OpenBSD: privsep.c,v 1.18 2011/08/20 17:30:37 matthieu Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -273,10 +273,6 @@ priv_init(uid_t uid, gid_t gid)
case PRIV_OPEN_DEVICE:
if ((dev = open_ok(cmd.arg.open.path)) != NULL) {
fd = open(cmd.arg.open.path, dev->flags);
- if (fd < 0) {
- warn("%s: open %s", __func__,
- cmd.arg.open.path);
- }
} else {
fd = -1;
errno = EPERM;