diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-28 20:29:33 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-28 20:29:33 +0000 |
commit | 70ce0341935fd116216e76d40ef65d969227e892 (patch) | |
tree | 6c3f151e6258cb75b0b1983e1e563d2b95ec457d /xserver/hw/xfree86/common/xf86Config.c | |
parent | df6b77dc03dec3df43fadeb2f3a4912966e93ea1 (diff) |
OpenBSD local modifications:
- privilege separation
- some snprintf/strlc{at,py} conversions
- support for more architectures
- signal handler fixes
- default mouse wheel support in config tools
- sunmouse protocol
Diffstat (limited to 'xserver/hw/xfree86/common/xf86Config.c')
-rw-r--r-- | xserver/hw/xfree86/common/xf86Config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xserver/hw/xfree86/common/xf86Config.c b/xserver/hw/xfree86/common/xf86Config.c index f1055928e..c050def4e 100644 --- a/xserver/hw/xfree86/common/xf86Config.c +++ b/xserver/hw/xfree86/common/xf86Config.c @@ -1220,7 +1220,11 @@ configInputKbd(IDevPtr inputp) " the \"wskbd\" keyboard protocol"); return FALSE; } +#ifndef X_PRIVSEP xf86Info.kbdFd = open(s, O_RDWR | O_NONBLOCK | O_EXCL); +#else + xf86Info.kbdFd = priv_open_device(s); +#endif if (xf86Info.kbdFd == -1) { xf86ConfigError("cannot open \"%s\"", s); xfree(s); @@ -1264,7 +1268,8 @@ configInputKbd(IDevPtr inputp) close(xf86Info.kbdFd); return FALSE; } -#endif + close (xf86Info.kbdFd); +#endif /* WSCONS_SUPPORT */ } else { xf86ConfigError("\"%s\" is not a valid keyboard protocol name", s); xfree(s); |