aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_lowlevel.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-11-11 09:55:55 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-11-11 09:55:55 +0000
commitfc5309cfd2b84b13279f5c512bd575b0a2322ae8 (patch)
tree8859e5a9160eb4708422f93ba66910146c574c1f /lib/fuse_lowlevel.c
parent10d03ed9c381436d06252ab440bc2e910e7e755b (diff)
downloadlibfuse-fc5309cfd2b84b13279f5c512bd575b0a2322ae8.tar.gz
fixes
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r--lib/fuse_lowlevel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 05d99e1..98738e4 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -952,6 +952,13 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
f->conn.proto_major = arg->major;
f->conn.proto_minor = arg->minor;
+ if (arg->major < 7) {
+ fprintf(stderr, "fuse: unsupported protocol version: %u.%u\n",
+ arg->major, arg->minor);
+ fuse_reply_err(req, EPROTO);
+ return;
+ }
+
if (arg->major > 7 || (arg->major == 7 && arg->minor >= 6)) {
if (f->conn.async_read)
f->conn.async_read = arg->flags & FUSE_ASYNC_READ;