diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-07 19:34:04 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-07 19:34:04 +0000 |
commit | 2134ae2cd2e3b02244d65c8a32b3829f0803e24a (patch) | |
tree | 6ac9e7b8b2a76e7bee0927721e831875e545c238 /sys/kern/kern_sysctl.c | |
parent | c339d50d2b644a2495b74d54a316a940d1f9d9fe (diff) |
Unbreak KERN_PROC_KTHREAD. Explicitly list KERN_PROC_KTHREAD in
the sysctl_doproc() switch so it does not match the default case
(EINVAL). deraadt@ OK.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 3c3781366ad..85cba92358e 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.95 2004/01/07 03:37:57 millert Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.96 2004/01/07 19:34:03 millert Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -996,6 +996,9 @@ again: if (p->p_flag & P_SYSTEM) continue; break; + case KERN_PROC_KTHREAD: + /* no filtering */ + break; default: return (EINVAL); } |