mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-30 21:25:06 +00:00
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:
parent
5084a62dd1
commit
8f87b117c4
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user