FreeBSD Bugzilla – Attachment 175710 Details for
Bug 213450
[nfs] mountd flag -n operates on wrong sysctl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
change sysctl in mountd.{c,8}
mountd.patch (text/plain), 1.09 KB, created by
Robert Schulze
on 2016-10-13 14:44:26 UTC
(
hide
)
Description:
change sysctl in mountd.{c,8}
Filename:
MIME Type:
Creator:
Robert Schulze
Created:
2016-10-13 14:44:26 UTC
Size:
1.09 KB
patch
obsolete
>--- usr.sbin/mountd.orig/mountd.8 2016-10-13 16:42:12.235243000 +0200 >+++ usr.sbin/mountd/mountd.8 2016-10-13 16:43:15.422303000 +0200 >@@ -96,7 +96,7 @@ > Allow non-root mount requests to be served. > This should only be specified if there are clients such as PC's, > that require it. >-It will automatically clear the vfs.nfsrv.nfs_privport sysctl flag, which >+It will automatically clear the vfs.nfsd.nfs_privport sysctl flag, which > controls if the kernel will accept NFS requests from reserved ports only. > .It Fl o > This flag forces the system to run the old NFS server, which does not >diff -Naur usr.sbin/mountd.orig/mountd.c usr.sbin/mountd/mountd.c >--- usr.sbin/mountd.orig/mountd.c 2016-10-13 16:42:12.235221000 +0200 >+++ usr.sbin/mountd/mountd.c 2016-10-13 16:42:48.582157000 +0200 >@@ -489,7 +489,7 @@ > rpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec); > > if (!resvport_only) { >- if (sysctlbyname("vfs.nfsrv.nfs_privport", NULL, NULL, >+ if (sysctlbyname("vfs.nfsd.nfs_privport", NULL, NULL, > &resvport_only, sizeof(resvport_only)) != 0 && > errno != ENOENT) { > syslog(LOG_ERR, "sysctl: %m"); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213450
: 175710