From: Steve Dickson Date: Sat, 3 Nov 2007 14:40:36 +0000 (-0400) Subject: When mountd gets a request to export a mountpoint which is not X-Git-Tag: nfs-utils-1-1-2~31 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=bfdc26916d8dabd319240a3ce5198b6189040be7 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. Signed-off-by: Neil Brown Signed-off-by: Steve Dickson --- 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);