]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/exportfs/exportfs.c
Make CROSSMNT distinct from NOHIDE
[nfs-utils.git] / utils / exportfs / exportfs.c
index 41f475036f6586326ee549e57b50b8d0bcfedbc6..05ace88959d221f25f80784b7adba03749ad8203 100644 (file)
@@ -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.
@@ -331,8 +333,10 @@ dump(int verbose)
                                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)