-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cmake): patch libs to list-views correctly
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
- Loading branch information
1 parent
e165210
commit 07ed12d
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/userspace/chisel/chisel.cpp b/userspace/chisel/chisel.cpp | ||
index ba01ba9dd..0927372fc 100644 | ||
--- a/userspace/chisel/chisel.cpp | ||
+++ b/userspace/chisel/chisel.cpp | ||
@@ -1090,9 +1090,10 @@ void sinsp_chisel::get_chisel_list(vector<chisel_desc>* chisel_descs) | ||
continue; | ||
} | ||
|
||
- for (auto const& dir_entry : filesystem::directory_iterator(dir_info.m_dir)) | ||
+ std::error_code ec; | ||
+ for (auto const& dir_entry : filesystem::directory_iterator(dir_info.m_dir, ec)) | ||
{ | ||
- if(dir_entry.path().extension() == ".lua") | ||
+ if(!ec && dir_entry.path().extension() == ".lua") | ||
{ | ||
auto res = find_if(chisel_descs->begin(), chisel_descs->end(), | ||
[&dir_entry](auto& desc) { return dir_entry.path().filename() == desc.m_name; }); |