xlog_open("exportfs");
+ export_errno = 0;
+
while ((c = getopt(argc, argv, "aio:ruv")) != EOF) {
switch(c) {
case 'a':
xtab_export_write();
xtab_mount_write();
- return 0;
+ return export_errno;
}
/* we synchronise intention with reality.
c = dumpopt(c, "async");
if (ep->e_flags & NFSEXP_GATHERED_WRITES)
c = dumpopt(c, "wdelay");
- if (ep->e_flags & NFSEXP_CROSSMNT)
+ if (ep->e_flags & NFSEXP_NOHIDE)
c = dumpopt(c, "nohide");
+ if (ep->e_flags & NFSEXP_CROSSMNT)
+ c = dumpopt(c, "crossmnt");
if (ep->e_flags & NFSEXP_INSECURE_PORT)
c = dumpopt(c, "insecure");
if (ep->e_flags & NFSEXP_ROOTSQUASH)