X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2Fxtab.c;h=4daef00e8be85ed0d613bee5849e6469614b90a5;hp=54470c1cfeb60171d808b073dad71e1e09c9756b;hb=0bd51f4c931eb68c355140c721763be64213a3ca;hpb=7ac2c918e16fd63aa81c3aeb0e4870cded076bba diff --git a/support/export/xtab.c b/support/export/xtab.c index 54470c1..4daef00 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)) != NULL) { if (!(exp = export_lookup(xp->e_hostname, xp->e_path, is_export != 1)) && !(exp = export_create(xp, is_export!=1))) { continue;