From 5a2e4e14857f40e4b6a1e1cec4e77cb5c296913e Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 1 Nov 2007 16:16:57 +1100 Subject: [PATCH] Fix bug in auto-exporting subordinate mounts. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index ce1a5a9..fd317cd 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -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); -- 2.39.5