Also do not send junk mount arguments when removing exports.

This commit is contained in:
Poul-Henning Kamp 2004-12-11 12:51:20 +00:00
parent 494ea31a7d
commit e71171f31b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138680

View File

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