Have sysctl() return the correct errno(2) as documented in the
sysctl(3) manpage. Submitted by: ru Obtained from: BSD/OS
This commit is contained in:
parent
ecca80bd97
commit
f7a54d06e5
@ -1008,7 +1008,7 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS)
|
||||
if (req->newptr)
|
||||
return (EPERM);
|
||||
if (namelen != 3)
|
||||
return (EINVAL);
|
||||
return ((namelen < 3) ? EISDIR : ENOTDIR);
|
||||
af = name[0];
|
||||
Bzero(&w, sizeof(w));
|
||||
w.w_op = name[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user