X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fexportfs%2Fexportfs.c;h=60f130e6f802bf1781a87d6bddfa99c0b3d05b41;hb=77c32fa565d6af59cbeb8601e08efa9af6ef3d81;hp=41f475036f6586326ee549e57b50b8d0bcfedbc6;hpb=40c87b1d669a34447824a81e24f9bb38417d702d;p=nfs-utils.git diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c index 41f4750..60f130e 100644 --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -45,6 +45,8 @@ main(int argc, char **argv) xlog_open("exportfs"); + export_errno = 0; + while ((c = getopt(argc, argv, "aio:ruv")) != EOF) { switch(c) { case 'a': @@ -119,7 +121,7 @@ main(int argc, char **argv) xtab_export_write(); xtab_mount_write(); - return 0; + return export_errno; } /* we synchronise intention with reality.