From: deraadt Date: Wed, 28 Oct 2015 09:35:03 +0000 (+0000) Subject: kern.cptime is length 2 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3950137eea19f846b1370d72b6450d99a644ac8f;p=openbsd kern.cptime is length 2 --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 1222353a6be..b21300158c4 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.81 2015/10/28 02:12:54 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.82 2015/10/28 09:35:03 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -908,7 +908,7 @@ pledge_sysctl_check(struct proc *p, int miblen, int *mib, void *new) if (miblen == 2 && /* kern.loadavg */ mib[0] == CTL_VM && mib[1] == VM_LOADAVG) return (0); - if (miblen == 3 && /* kern.cptime */ + if (miblen == 2 && /* kern.cptime */ mib[0] == CTL_KERN && mib[1] == KERN_CPTIME) return (0); if (miblen == 3 && /* kern.cptime2 */