diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-06-03 19:55:03 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-06-03 19:55:03 +0100 |
commit | 9863539e905375dd604f6935ae1d862d4f4f87b8 (patch) | |
tree | 80d179130247ade3e5dd9e6ea70a2195c2466644 | |
parent | Replace transform_reduce with a lambda and transform (diff) | |
download | netfs-9863539e905375dd604f6935ae1d862d4f4f87b8.tar.bz2 netfs-9863539e905375dd604f6935ae1d862d4f4f87b8.tar.xz netfs-9863539e905375dd604f6935ae1d862d4f4f87b8.zip |
Check for FUSE_READDIR_PLUS should be bit-wise, not equality
-rw-r--r-- | netfs/fuse/fuseDirs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<OpenDirPtr>(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); |