diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-09-18 17:04:26 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-09-18 17:04:26 +0000 |
commit | 58834f5972e1bccbd50161cd117ea2f7f64bd892 (patch) | |
tree | c780331dde3bddc659a41cc2e31ecf35cd3ac9f2 | |
parent | b548f294bc5ff653421c1a131515815a84821259 (diff) | |
download | FreeBSD-src-58834f5972e1bccbd50161cd117ea2f7f64bd892.zip FreeBSD-src-58834f5972e1bccbd50161cd117ea2f7f64bd892.tar.gz |
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
-rwxr-xr-x | etc/rc.d/mountd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd index df01242..4389451 100755 --- a/etc/rc.d/mountd +++ b/etc/rc.d/mountd @@ -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 |