summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--support/include/exportfs.h1
-rw-r--r--support/nfs/exports.c2
-rw-r--r--utils/mountd/cache.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/support/include/exportfs.h b/support/include/exportfs.h
index 5960feb..1fbf754 100644
--- a/support/include/exportfs.h
+++ b/support/include/exportfs.h
@@ -177,6 +177,7 @@ struct export_features {
};
struct export_features *get_export_features(void);
+void fix_pseudoflavor_flags(struct exportent *ep);
/* Record export error. */
extern int export_errno;
diff --git a/support/nfs/exports.c b/support/nfs/exports.c
index 6c08a2b..dea040f 100644
--- a/support/nfs/exports.c
+++ b/support/nfs/exports.c
@@ -469,7 +469,7 @@ static void clearflags(int mask, unsigned int active, struct exportent *ep)
* ensure that the export flags agree with the flags on each
* pseudoflavor:
*/
-static void fix_pseudoflavor_flags(struct exportent *ep)
+void fix_pseudoflavor_flags(struct exportent *ep)
{
struct export_features *ef;
struct sec_entry *p;
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index e1027f3..737927c 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -737,6 +737,7 @@ static void write_secinfo(FILE *f, struct exportent *ep, int flag_mask)
/* There was no sec= option */
return;
}
+ fix_pseudoflavor_flags(ep);
qword_print(f, "secinfo");
qword_printint(f, p - ep->e_secinfo);
for (p = ep->e_secinfo; p->flav; p++) {