summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-11 12:51:20 +0000
committerphk <phk@FreeBSD.org>2004-12-11 12:51:20 +0000
commitfe016ce224c283ad12f86190ade43b96eabd4ddc (patch)
tree69a3b424f4d9956bf40b6f92e711055bd932f854 /usr.sbin/mountd
parentb733b4afe12600b503f3a2bf05f42124cf089ab3 (diff)
downloadFreeBSD-src-fe016ce224c283ad12f86190ade43b96eabd4ddc.zip
FreeBSD-src-fe016ce224c283ad12f86190ade43b96eabd4ddc.tar.gz
Also do not send junk mount arguments when removing exports.
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index f937466..8b03e13 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -1020,6 +1020,7 @@ get_exportlist()
!strcmp(fsp->f_fstypename, "msdosfs") ||
!strcmp(fsp->f_fstypename, "ntfs") ||
!strcmp(fsp->f_fstypename, "cd9660")) {
+ bzero(&targs, sizeof targs);
targs.ua.fspec = NULL;
targs.ua.export.ex_flags = MNT_DELEXPORT;
if (mount(fsp->f_fstypename, fsp->f_mntonname,
OpenPOWER on IntegriCloud