X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fnfs%2Fexports.c;h=525e5b1d4286c997dcdb6f7e30daa7c0d8e02e0d;hb=fd54675db0806e81c17ee7e7eec0abfcd33f1f23;hp=6b567081123edee90f976fd508847df6381ff4c6;hpb=4c337e2131123c339bc4921779b57b69b77be2fd;p=nfs-utils.git diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 6b56708..525e5b1 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -641,6 +641,12 @@ bad_option: while (isblank(*cp)) cp++; } + /* + * Turn on nohide which will allow this export to cross over + * the 'mount --bind' mount point. + */ + if (ep->e_fslocdata) + ep->e_flags |= NFSEXP_NOHIDE; for (p = ep->e_secinfo; p->flav; p++) p->flags |= ep->e_flags & ~NFSEXP_SECINFO_FLAGS;