X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fnfs%2Fexports.c;fp=support%2Fnfs%2Fexports.c;h=dea040f1006eb830f13a031d1a55dce80555867d;hp=84a2b08b1f3c69e1b9765e1e42a7aa90c9b3d082;hb=fb06ed9fc1fa11a95544fb2d89adb6c51ef5d946;hpb=5b30c751e3bceab727de684c5ca96c6edd6df001 diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 84a2b08..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; @@ -643,6 +643,8 @@ bad_option: cp++; } + if (ep->e_secinfo[0].flav == NULL) + secinfo_addflavor(find_flavor("sys"), ep); fix_pseudoflavor_flags(ep); ep->e_squids = squids; ep->e_sqgids = sqgids;