]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r307890
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 8 Nov 2016 21:09:48 +0000 (21:09 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 8 Nov 2016 21:09:48 +0000 (21:09 +0000)
commit6820bd03e36f8e558d468b56554bcc97e27eae2d
tree9523a40380ff384f5e0f903223ae61f6319ba02f
parentbce706eb1e2ba54bf26f3f31674637411f652829
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 head and stable/11. For stable/10 the
patch will need to be modified when MFC'd, since the stable/10 mountd.c
handles both old and new NFS servers.
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.
usr.sbin/mountd/mountd.c