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
b548f294bc
commit
58834f5972
@ -29,11 +29,11 @@ mountd_precmd()
|
|||||||
#
|
#
|
||||||
if checkyesno nfs_server_enable ; then
|
if checkyesno nfs_server_enable ; then
|
||||||
if checkyesno weak_mountd_authentication; then
|
if checkyesno weak_mountd_authentication; then
|
||||||
mountd_flags="${mountd_flags} -n"
|
rc_flags="${mountd_flags} -n"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if checkyesno mountd_enable; then
|
if checkyesno mountd_enable; then
|
||||||
checkyesno weak_mountd_authentication && mountd_flags="-n"
|
checkyesno weak_mountd_authentication && rc_flags="-n"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
rm -f /var/db/mountdtab
|
rm -f /var/db/mountdtab
|
||||||
|
Loading…
x
Reference in New Issue
Block a user