sd-bus: deal with whitespace in matches

This commit is contained in:
Lennart Poettering
2014-11-27 22:02:12 +01:00
parent 7d31d92400
commit 771b2724c0
+3
View File
@@ -748,6 +748,9 @@ int bus_match_parse(
bool escaped = false, quoted;
uint8_t u;
/* Avahi's match rules appear to include whitespace, skip over it */
p += strspn(p, " ");
eq = strchr(p, '=');
if (!eq)
return -EINVAL;