From 9863539e905375dd604f6935ae1d862d4f4f87b8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 3 Jun 2022 19:55:03 +0100 Subject: Check for FUSE_READDIR_PLUS should be bit-wise, not equality --- netfs/fuse/fuseDirs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index a4fa233..dd5f0db 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -49,7 +49,7 @@ namespace NetFS { auto od = getProxy(fi->fh); const std::string path(p); auto expiry = time(nullptr) + 2; - if (flags == FUSE_READDIR_PLUS) { + if (flags & FUSE_READDIR_PLUS) { for (const auto & e : od->remote->listdir()) { if (auto stat = converter.convert(e.second); stat.st_mode) { filler(buf, e.first.c_str(), nullptr, 0, FUSE_FILL_DIR_PLUS); -- cgit v1.2.3