X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2Fxtab.c;h=3ef36610357209f06e73e184cff3fc48e1d177dc;hp=54470c1cfeb60171d808b073dad71e1e09c9756b;hb=refs%2Ftags%2Fnfs-utils-1-0-1-pre8;hpb=37e49789ab1cd849def25ba4c4d97ccdb11d1e61 diff --git a/support/export/xtab.c b/support/export/xtab.c index 54470c1..3ef3661 100644 --- a/support/export/xtab.c +++ b/support/export/xtab.c @@ -32,7 +32,7 @@ xtab_read(char *xtab, int is_export) if ((lockid = xflock(xtab, "r")) < 0) return 0; setexportent(xtab, "r"); - while ((xp = getexportent()) != NULL) { + while ((xp = getexportent(is_export==0, 0)) != NULL) { if (!(exp = export_lookup(xp->e_hostname, xp->e_path, is_export != 1)) && !(exp = export_create(xp, is_export!=1))) { continue;