X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fexportfs%2Fexportfs.c;h=60f130e6f802bf1781a87d6bddfa99c0b3d05b41;hp=41f475036f6586326ee549e57b50b8d0bcfedbc6;hb=refs%2Ftags%2Fnfs-utils-1-0-2-pre4;hpb=955d48dbcf0c75f263f2573c998acc65f95ededa 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.