]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r307890
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 8 Nov 2016 21:39:15 +0000 (21:39 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 8 Nov 2016 21:39:15 +0000 (21:39 +0000)
commit6c99daa588086c3753b5ae4a89679f5e46fd218b
tree929690f2a194ebfa7ff711ec182c17ba556be7f1
parentad981a573ef8d754b22b299fd287a087a6333d29
MFC: r307890
mountd(8) was erroneously setting the sysctl for the old NFS server
when the new/default NFS server was running, for the "-n" option.

This patch fixes the problem for stable/10 and stable/9.
Since the new NFS server uses vfs.nfsd.nfs_privport == 0 by default,
there wouldn't have been many users affected by the code not setting
it to 0 when the "-n" option was specified.

git-svn-id: svn://svn.freebsd.org/base/stable/10@308452 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/mountd/mountd.c