diff --git a/rosmon_core/src/main.cpp b/rosmon_core/src/main.cpp index cb25dd3..3bf3442 100644 --- a/rosmon_core/src/main.cpp +++ b/rosmon_core/src/main.cpp @@ -45,7 +45,7 @@ static fs::path findFile(const fs::path& base, const std::string& name) if(!p.empty()) return p; } - else if(it->path().leaf() == name) + else if(it->path().filename() == name) return *it; }