Also do not send junk mount arguments when removing exports.
This commit is contained in:
parent
b733b4afe1
commit
fe016ce224
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user