diff --git a/repos/gems/src/app/fs_query/main.cc b/repos/gems/src/app/fs_query/main.cc index a3e204d711..b3629736f6 100644 --- a/repos/gems/src/app/fs_query/main.cc +++ b/repos/gems/src/app/fs_query/main.cc @@ -86,8 +86,9 @@ struct Fs_query::Watched_file if (_rwx.writeable) xml.attribute("writeable", "yes"); - if (query.attribute_value("content", false)) - _gen_content(xml, alloc, dir); + if (_rwx.readable) + if (query.attribute_value("content", false)) + _gen_content(xml, alloc, dir); }); } /*