summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1d4a7c4..ef93cc3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -849,7 +849,8 @@ int main(int argc, char** argv)
for (auto& object_path : interface_map)
{
auto& this_path = object_path.first;
- if (boost::starts_with(req_path, this_path))
+ if (boost::starts_with(req_path, this_path) &&
+ (req_path != this_path))
{
if (interfaces.empty())
{
OpenPOWER on IntegriCloud