In mountd_precmd(), use rc_args, not mountd_args to
override the value of mountd_args. This fixes the problem where mountd_args was not properly being set if weak_mountd_authentifcation="YES" was set in rc.conf. PR: conf/86260 Submitted by: Thierry Herbelot <thierry at herbelot dot com> MFC after: 3 days
This commit is contained in:
parent
f225ac4280
commit
c33f2417a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150294
@ -29,11 +29,11 @@ mountd_precmd()
|
||||
#
|
||||
if checkyesno nfs_server_enable ; then
|
||||
if checkyesno weak_mountd_authentication; then
|
||||
mountd_flags="${mountd_flags} -n"
|
||||
rc_flags="${mountd_flags} -n"
|
||||
fi
|
||||
else
|
||||
if checkyesno mountd_enable; then
|
||||
checkyesno weak_mountd_authentication && mountd_flags="-n"
|
||||
checkyesno weak_mountd_authentication && rc_flags="-n"
|
||||
fi
|
||||
fi
|
||||
rm -f /var/db/mountdtab
|
||||
|
Loading…
Reference in New Issue
Block a user