summaryrefslogtreecommitdiffstats
path: root/lib/libevent/kqueue.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-03 20:26:44 +0000
committerderaadt <deraadt@openbsd.org>2003-06-03 20:26:44 +0000
commitbfb9648092f72d36520c6a642c2e1920b63f684e (patch)
treedbf9ec341b46ddfeb93cca5ae265a1768a0a4401 /lib/libevent/kqueue.c
parentthree four kills (diff)
downloadwireguard-openbsd-bfb9648092f72d36520c6a642c2e1920b63f684e.tar.xz
wireguard-openbsd-bfb9648092f72d36520c6a642c2e1920b63f684e.zip
do not honour getenv of EVENT_NOKQUEUE is issetugid; millert henning ok
Diffstat (limited to 'lib/libevent/kqueue.c')
-rw-r--r--lib/libevent/kqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c
index 535837a8fe1..c46df72426d 100644
--- a/lib/libevent/kqueue.c
+++ b/lib/libevent/kqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue.c,v 1.7 2003/03/10 04:02:50 david Exp $ */
+/* $OpenBSD: kqueue.c,v 1.8 2003/06/03 20:26:44 deraadt Exp $ */
/*
* Copyright 2000-2002 Niels Provos <provos@citi.umich.edu>
@@ -88,7 +88,7 @@ kq_init(void)
int kq;
/* Disable kqueue when this environment variable is set */
- if (getenv("EVENT_NOKQUEUE"))
+ if (issetugid() == 0 && getenv("EVENT_NOKQUEUE"))
return (NULL);
memset(&kqop, 0, sizeof(kqop));