diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-03 20:26:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-03 20:26:45 +0000 |
commit | 912fd9eb67916a65c772ba192b028fedcfec3fbf (patch) | |
tree | 3163d753d3f6ca3718bea18a42b4b88e4a3b38e0 /lib | |
parent | 15bf6bf1432a4c271f3c69e627f1e5612aa761d2 (diff) |
do not honour getenv of EVENT_NOKQUEUE is issetugid; millert henning ok
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libevent/kqueue.c | 4 |
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)); |