From 7b0075c06f171cdac7a3d565463c0e5938dff04d Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Mon, 17 Sep 2018 14:53:30 +0100 Subject: Don't enable adaptive readdirplus unless fs has readdir() handler. --- lib/fuse_lowlevel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/fuse_lowlevel.c') diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index c426b7c..e6e3d8d 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -1918,7 +1918,8 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) FUSE_CAP_POSIX_LOCKS); LL_SET_DEFAULT(se->op.flock, FUSE_CAP_FLOCK_LOCKS); LL_SET_DEFAULT(se->op.readdirplus, FUSE_CAP_READDIRPLUS); - LL_SET_DEFAULT(se->op.readdirplus, FUSE_CAP_READDIRPLUS_AUTO); + LL_SET_DEFAULT(se->op.readdirplus && se->op.readdir, + FUSE_CAP_READDIRPLUS_AUTO); se->conn.time_gran = 1; if (bufsize < FUSE_MIN_READ_BUFFER) { -- cgit v1.2.3