On Thu, Jun 06, 2013 at 23:53, Sylvestre Gallon wrote: > Hi, > > Sorry for the last mistakes. Here is a new diff that allow the > maxtypenum to be reached. > > Cheers, > > Index: sysctl.c > =================================================================== > RCS file: /cvs/src/sbin/sysctl/sysctl.c,v > retrieving revision 1.189 > diff -u -p -r1.189 sysctl.c > --- sysctl.c 16 Apr 2013 22:06:48 -0000 1.189 > +++ sysctl.c 6 Jun 2013 21:19:32 -0000 > @@ -1138,8 +1138,8 @@ vfsinit(void) > } > mib[2] = VFS_CONF; > buflen = sizeof vfc; > - for (loc = lastused, cnt = 1; cnt < maxtypenum; cnt++) { > - mib[3] = cnt - 1; > + for (loc = lastused, cnt = 0; cnt < maxtypenum; cnt++) { > + mib[3] = cnt;
I think we want to keep starting at 1. 0 isn't a valid vfc_typenum. (doesn't really matter, but better correct than not.) I can fix this before commit, you don't need to send a new diff.