routing: Use a better error number in sysctl_fibs()
ENOTCAPABLE is for capsicum and its use here is inappropriate. In particular, note that syscallret() treats this value specially. Reviewed by: glebius, pouria, zlei MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56481
This commit is contained in:
@@ -132,7 +132,7 @@ sysctl_fibs(SYSCTL_HANDLER_ARGS)
|
||||
new_fibs = normalize_num_rtables(new_fibs);
|
||||
|
||||
if (new_fibs < V_rt_numfibs)
|
||||
error = ENOTCAPABLE;
|
||||
error = EINVAL;
|
||||
if (new_fibs > V_rt_numfibs)
|
||||
grow_rtables(new_fibs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user