mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
machined: ignore spurious error
This commit is contained in:
parent
814a3fdfdc
commit
e5f5b5b9c9
@ -2111,9 +2111,10 @@ int match_properties_changed(sd_bus *bus, sd_bus_message *message, void *userdat
|
||||
return 0;
|
||||
|
||||
r = unit_name_from_dbus_path(path, &unit);
|
||||
if (r == -EINVAL) /* not a unit */
|
||||
return 0;
|
||||
if (r < 0)
|
||||
/* quietly ignore non-units paths */
|
||||
return r == -EINVAL ? 0 : r;
|
||||
return r;
|
||||
|
||||
session = hashmap_get(m->session_units, unit);
|
||||
if (session)
|
||||
|
@ -738,6 +738,8 @@ int match_properties_changed(sd_bus *bus, sd_bus_message *message, void *userdat
|
||||
return 0;
|
||||
|
||||
r = unit_name_from_dbus_path(path, &unit);
|
||||
if (r == -EINVAL) /* not for a unit */
|
||||
return 0;
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user