fix(userspace): correct directory iteration options

The original code was using follow_directory_symlink twice, this patch
fixes that.

Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
Samuel Gaist 2024-03-04 22:57:57 +01:00 committed by poiana
parent 5084a62dd1
commit 8f87b117c4

View File

@ -545,7 +545,7 @@ void falco_configuration::read_rules_file_directory(const std::string &path, std
std::vector<std::string> dir_filenames;
const auto it_options = fs::directory_options::follow_directory_symlink
| fs::directory_options::follow_directory_symlink;
| fs::directory_options::skip_permission_denied;
for (auto const& dir_entry : fs::directory_iterator(rules_path, it_options))
{