From fe016ce224c283ad12f86190ade43b96eabd4ddc Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 11 Dec 2004 12:51:20 +0000 Subject: [PATCH] Also do not send junk mount arguments when removing exports. --- usr.sbin/mountd/mountd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index f93746650d18..8b03e13d59dc 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,