1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

sd-bus: deal with whitespace in matches

This commit is contained in:
Lennart Poettering 2014-11-27 03:20:51 +01:00
parent 7d31d92400
commit 771b2724c0

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;