diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-05-20 00:36:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-05-20 10:13:38 +0200 |
commit | f11e11e3446f7959c11a60eb0c9b53ed75ef9f42 (patch) | |
tree | 24a0fe412375701b8c286bca8f9719d604656b6f /src/libsystemd-bus/bus-control.c | |
parent | 86312ab8de59c1066d6d2b456f3a9106ce3e0991 (diff) |
bus: add test for bloom filter prefix match
Diffstat (limited to 'src/libsystemd-bus/bus-control.c')
-rw-r--r-- | src/libsystemd-bus/bus-control.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c index 66f713082c..cb8618e5c5 100644 --- a/src/libsystemd-bus/bus-control.c +++ b/src/libsystemd-bus/bus-control.c @@ -406,8 +406,10 @@ int bus_add_match_internal( break; case BUS_MATCH_PATH_NAMESPACE: - bloom_add_pair(bloom, "path-slash-prefix", c->value_str); - using_bloom = true; + if (!streq(c->value_str, "/")) { + bloom_add_pair(bloom, "path-slash-prefix", c->value_str); + using_bloom = true; + } break; case BUS_MATCH_ARG...BUS_MATCH_ARG_LAST: { |