chiark / gitweb /
logind: remove redundant check in manager_new()
[elogind.git] / src / login / logind-dbus.c
index 08e53c36956a6821e56a717c646a637865375155..bd0de33866c0a23ac3321bcdc77c59db8e25b67d 100644 (file)
@@ -2047,7 +2047,8 @@ int match_properties_changed(sd_bus *bus, sd_bus_message *message, void *userdat
 
         r = unit_name_from_dbus_path(path, &unit);
         if (r < 0)
-                return r;
+                /* quietly ignore non-units paths */
+                return r == -EINVAL ? 0 : r;
 
         session = hashmap_get(m->session_units, unit);
         if (session)