machined: ignore spurious error

This commit is contained in:
Lennart Poettering 2014-12-29 19:08:50 +01:00
parent 814a3fdfdc
commit e5f5b5b9c9
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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;