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:
parent
7d31d92400
commit
771b2724c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user