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:
rodrigc 2005-09-18 17:04:26 +00:00
parent b548f294bc
commit 58834f5972

View File

@ -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