X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2Fxtab.c;h=3ef36610357209f06e73e184cff3fc48e1d177dc;hp=b0c309575313fcfc41ae1877b87b8dd8da136cfa;hb=1898a9dc11a9834f557775a6b7d1ca7b1b6ca057;hpb=82d42dffa84fb884684f75769ca13668c5188a5e diff --git a/support/export/xtab.c b/support/export/xtab.c index b0c3095..3ef3661 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, 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) {