summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2007-11-03 10:40:36 -0400
committerSteve Dickson <steved@redhat.com>2007-11-03 10:40:36 -0400
commitbfdc26916d8dabd319240a3ce5198b6189040be7 (patch)
tree630a2cb25ff45b82e92961dc1165a09aaa54a7e0
parent812a43c1e4e055ee684ab95b28b41f0c16cc52fd (diff)
downloadnfs-utils-bfdc26916d8dabd319240a3ce5198b6189040be7.tar.gz
nfs-utils-bfdc26916d8dabd319240a3ce5198b6189040be7.tar.xz
nfs-utils-bfdc26916d8dabd319240a3ce5198b6189040be7.zip
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 <neilb@suse.de> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mountd/cache.c2
1 files changed, 1 insertions, 1 deletions
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);