X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fcache.c;h=c5bc53fa3023166a4d3f51d8ce99a3806c1ba72f;hp=1d1567d2012f97bed71a1a5a1786a73bdb845934;hb=936ecbb5750e0e29b9e2464998a8e03eca617b72;hpb=5272be95bf48cb4e9f8579105a79522e88b695f4 diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 1d1567d..c5bc53f 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -335,7 +335,7 @@ void cache_export(nfs_export *exp) * } <> /proc/fs/nfs/filehandle */ struct nfs_fh_len * -cache_get_filehandle(nfs_export *exp, int len) +cache_get_filehandle(nfs_export *exp, int len, char *p) { FILE *f = fopen("/proc/fs/nfs/filehandle", "r+"); char buf[200]; @@ -345,7 +345,7 @@ cache_get_filehandle(nfs_export *exp, int len) return NULL; qword_print(f, exp->m_client->m_hostname); - qword_print(f, exp->m_export.e_path); + qword_print(f, p); qword_printint(f, len); qword_eol(f);