]> git.sesse.net Git - plocate/blobdiff - access_rx_cache.cpp
Bump version number.
[plocate] / access_rx_cache.cpp
index c6f56347e8ecf543ebfeb4af567c351d5039f77f..b6db4eaf101c9faa288e3d0ac005b946c1a68e15 100644 (file)
@@ -11,6 +11,11 @@ using namespace std;
 
 void AccessRXCache::check_access(const char *filename, bool allow_async, function<void(bool)> cb)
 {
+       if (!check_visibility) {
+               cb(true);
+               return;
+       }
+
        lock_guard<mutex> lock(mu);
        if (engine == nullptr || !engine->get_supports_stat()) {
                allow_async = false;