summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-20 22:40:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-20 22:40:36 +0000
commitdab14b4db0846344b96d59b21fb17b0ba7f16df1 (patch)
tree8cadd6585c54a45525c2b3bde3829258a28c1137 /sbin
parent22fcca33853941d5508fb8a6c1a717754315a88f (diff)
if we must un-export, only un-export when we do the first call for
each filesystem; ok drahn, specific issue found by otto
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mountd/mountd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c
index afb3c7c0886..ccafd46e7ac 100644
--- a/sbin/mountd/mountd.c
+++ b/sbin/mountd/mountd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mountd.c,v 1.64 2005/09/13 02:53:28 drahn Exp $ */
+/* $OpenBSD: mountd.c,v 1.65 2005/09/20 22:40:35 deraadt Exp $ */
/* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */
/*
@@ -999,6 +999,7 @@ get_exportlist(void)
* val of 1 means line is invalid (not just entry).
*/
i = do_mount(ep, grp, exflags, &anon, dirp, dirplen, &fsb);
+ exflags &= ~MNT_DELEXPORT;
if (i == 1) {
getexp_err(ep, tgrp);
goto nextline;