The KERN_PROC_PROC sysctl took 4 args in 5.0-REL and 5.1-REL. We need to

accept this for a bit longer.  Requiring the new order of 3 args only
was not very helpful.
This commit is contained in:
peter 2003-10-15 03:11:46 +00:00
parent 8f60b15573
commit 8cbefc5894

View File

@ -922,10 +922,13 @@ sysctl_kern_proc(SYSCTL_HANDLER_ARGS)
switch (oidp->oid_number) {
case KERN_PROC_ALL:
case KERN_PROC_PROC:
if (namelen != 0)
return (EINVAL);
break;
case KERN_PROC_PROC:
if (namelen != 0 && namelen != 1)
return (EINVAL);
break;
default:
if (namelen != 1)
return (EINVAL);