Skip to content

Commit

Permalink
fix(userspace): correct directory iteration options
Browse files Browse the repository at this point in the history
The original code was using follow_directory_symlink twice, this patch
fixes that.

Signed-off-by: Samuel Gaist <[email protected]>
  • Loading branch information
sgaist authored and poiana committed Mar 5, 2024
1 parent 5084a62 commit 8f87b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/falco/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 8f87b11

Please sign in to comment.