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:
parent
8f60b15573
commit
8cbefc5894
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user