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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89768
@ -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…
Reference in New Issue
Block a user