From 162bcbbff3d531c7d1a630da706a2d0be80f8995 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 29 Nov 2004 23:43:44 +0000 Subject: fix --- lib/fuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/fuse.c') diff --git a/lib/fuse.c b/lib/fuse.c index 66474fb..eb10cdf 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -18,6 +18,7 @@ #include #define FUSE_VERSION_FILE_OLD "/proc/fs/fuse/version" +#define FUSE_VERSION_FILE_NEW "/sys/fs/fuse/version" #define FUSE_DEV_OLD "/proc/fs/fuse/dev" #define FUSE_MAX_PATH 4096 @@ -1744,7 +1745,7 @@ void __fuse_set_getcontext_func(struct fuse_context *(*func)(void)) static int check_version(struct fuse *f) { int res; - const char *version_file = FUSE_VERSION_FILE; + const char *version_file = FUSE_VERSION_FILE_NEW; FILE *vf = fopen(version_file, "r"); if (vf == NULL) { version_file = FUSE_VERSION_FILE_OLD; -- cgit v1.2.3