mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 18:12:57 +01:00
When accessing the sysctl vfs.nfs.iodmax, don't report errors as being
from accessing vfs.nfs.iodmin.
This commit is contained in:
parent
338465d521
commit
3994793281
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144757
@ -119,7 +119,7 @@ main(int argc, char *argv[])
|
||||
len = sizeof iodmax;
|
||||
error = sysctlbyname("vfs.nfs.iodmax", &iodmax, &len, NULL, 0);
|
||||
if (error < 0)
|
||||
err(1, "sysctlbyname(\"vfs.nfs.iodmin\")");
|
||||
err(1, "sysctlbyname(\"vfs.nfs.iodmax\")");
|
||||
/* Catch the case where we're lowering num_servers below iodmin */
|
||||
if (iodmin > num_servers) {
|
||||
iodmin = num_servers;
|
||||
|
Loading…
Reference in New Issue
Block a user