X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2Fxtab.c;h=4daef00e8be85ed0d613bee5849e6469614b90a5;hp=b0c309575313fcfc41ae1877b87b8dd8da136cfa;hb=0bd51f4c931eb68c355140c721763be64213a3ca;hpb=82d42dffa84fb884684f75769ca13668c5188a5e diff --git a/support/export/xtab.c b/support/export/xtab.c index b0c3095..4daef00 100644 --- a/support/export/xtab.c +++ b/support/export/xtab.c @@ -32,9 +32,9 @@ xtab_read(char *xtab, int is_export) if ((lockid = xflock(xtab, "r")) < 0) return 0; setexportent(xtab, "r"); - while ((xp = getexportent()) != NULL) { - if (!(exp = export_lookup(xp->e_hostname, xp->e_path)) && - !(exp = export_create(xp))) { + 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; } switch (is_export) {