diff options
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/exportfs/exportfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
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. |
