]> git.neil.brown.name Git - nfs-utils.git/commitdiff
Fix bug in auto-exporting subordinate mounts.
authorNeil Brown <neilb@suse.de>
Thu, 1 Nov 2007 05:16:57 +0000 (16:16 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 1 Nov 2007 05:16:57 +0000 (16:16 +1100)
When mountd gets a request to export a mountpoint which is not
explicitly exported, but is below an export point that is flagged as
"crossmnt", it passes the wrong path name to the kernel for the
  "filehandle -> directory"
mapping.
This can badly confuse the NFS client, and is certainly wrong.

So use the correct path names.

utils/mountd/cache.c

index ce1a5a9f41bc9accd5d6433e77926d29b693d66a..fd317cdc40fc16c9744de0dded6b84442c001d6e 100644 (file)
@@ -508,7 +508,7 @@ void nfsd_fh(FILE *f)
         */
        qword_printint(f, 0x7fffffff);
        if (found)
-               qword_print(f, found->e_path);
+               qword_print(f, found_path);
        qword_eol(f);
  out:
        free(found_path);