summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2012-05-30 20:04:52 +0000
committermatthew <matthew@openbsd.org>2012-05-30 20:04:52 +0000
commit1ad114127fa60601052a44a34779a1db684b6912 (patch)
tree9c4ec50c336bfeee880d6b48a5085c6fc424345c /sys/kern/kern_sysctl.c
parentMove the _SC_* and _CS_* configurable system variables and strings (diff)
downloadwireguard-openbsd-1ad114127fa60601052a44a34779a1db684b6912.tar.xz
wireguard-openbsd-1ad114127fa60601052a44a34779a1db684b6912.zip
Oops, when we moved _POSIX_SAVED_IDS from sys/unistd.h to unistd.h, it
silently changed sysctl kern.saved_ids from returning 1 to 0. ok millert
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index e15d254edbc..2f32fd7d352 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.224 2012/05/25 04:39:41 guenther Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.225 2012/05/30 20:04:52 matthew Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -392,11 +392,7 @@ kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
case KERN_JOB_CONTROL:
return (sysctl_rdint(oldp, oldlenp, newp, 1));
case KERN_SAVED_IDS:
-#ifdef _POSIX_SAVED_IDS
return (sysctl_rdint(oldp, oldlenp, newp, 1));
-#else
- return (sysctl_rdint(oldp, oldlenp, newp, 0));
-#endif
case KERN_MAXPARTITIONS:
return (sysctl_rdint(oldp, oldlenp, newp, MAXPARTITIONS));
case KERN_RAWPARTITION: