summaryrefslogtreecommitdiffstats
path: root/utils/mountd/cache.c
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2003-08-04 04:25:54 +0000
committerneilbrown <neilbrown>2003-08-04 04:25:54 +0000
commite09fbc8933961a0a774217ef32d73da373ddc670 (patch)
tree4549a0208515316164325485ebb3cb583cd989ce /utils/mountd/cache.c
parent18fc7a86a2a1213762cc4107565903127efadafc (diff)
downloadnfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.tar.gz
nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.tar.xz
nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.zip
/proc/fs/nfsd as an alternate to /proc/fs/nfsd
Diffstat (limited to 'utils/mountd/cache.c')
-rw-r--r--utils/mountd/cache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 2e35b17..96492b8 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -368,15 +368,18 @@ void cache_export(nfs_export *exp)
* {
* echo $domain $path $length
* read filehandle <&0
- * } <> /proc/fs/nfs/filehandle
+ * } <> /proc/fs/nfsd/filehandle
*/
struct nfs_fh_len *
cache_get_filehandle(nfs_export *exp, int len, char *p)
{
- FILE *f = fopen("/proc/fs/nfs/filehandle", "r+");
+ FILE *f = fopen("/proc/fs/nfsd/filehandle", "r+");
char buf[200];
char *bp = buf;
static struct nfs_fh_len fh;
+
+ if (!f)
+ f = fopen("/proc/fs/nfs/filehandle", "r+");
if (!f)
return NULL;