summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-09-18 17:04:26 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-09-18 17:04:26 +0000
commit58834f5972e1bccbd50161cd117ea2f7f64bd892 (patch)
treec780331dde3bddc659a41cc2e31ecf35cd3ac9f2 /etc/rc.d
parentb548f294bc5ff653421c1a131515815a84821259 (diff)
downloadFreeBSD-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
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/mountd4
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
OpenPOWER on IntegriCloud