Assistant: Don't index the /dev directory

This commit is contained in:
Andreas Kling 2021-07-04 23:14:57 +02:00
parent 085da369ff
commit 45a2bc27d5
Notes: sideshowbarker 2024-07-18 10:26:02 +09:00

View file

@ -171,7 +171,7 @@ void FileProvider::build_filesystem_cache()
while (!m_work_queue.is_empty()) { while (!m_work_queue.is_empty()) {
auto base_directory = m_work_queue.dequeue(); auto base_directory = m_work_queue.dequeue();
if (base_directory.template is_one_of("/proc"sv, "/sys"sv)) if (base_directory.template is_one_of("/dev"sv, "/proc"sv, "/sys"sv))
continue; continue;
Core::DirIterator di(base_directory, Core::DirIterator::SkipDots); Core::DirIterator di(base_directory, Core::DirIterator::SkipDots);