summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-07-18 03:26:49 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-07-18 03:26:49 +0000
commitfd1dd940f054a464dadcd15a996f0e8b0f9ccd54 (patch)
tree098dddbc05bbe100624f0e0c99ad258ad4434643 /sbin
parent551115a8061282e6ed5527b6b2c720d73b8afe9c (diff)
Correct off-by-one in naming of nodes below vfs.mounts.
problem noted by Rafael Neves (rafaelneves (at) gmail.com) ok jca@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/sysctl/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 291e3173d42..c26d5b2cef0 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.192 2013/06/09 12:54:38 tedu Exp $ */
+/* $OpenBSD: sysctl.c,v 1.193 2013/07/18 03:26:48 guenther Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -1200,7 +1200,7 @@ sysctl_vfsgen(char *string, char **bufpp, int mib[], int flags, int *typep)
mib[1] = VFS_GENERIC;
mib[2] = VFS_CONF;
- mib[3] = indx;
+ mib[3] = indx + 1;
size = sizeof vfc;
if (sysctl(mib, 4, &vfc, &size, (void *)0, (size_t)0) < 0) {
if (errno != EOPNOTSUPP)