chiark / gitweb /
timedatectl: assorted simplifications
[elogind.git] / src / libsystemd-bus / bus-objects.c
index aa0be37a9de8061d918e9bbb258c651cd0d252f2..05d0015902075850c6ce0b13480b63365a3dd038 100644 (file)
@@ -600,7 +600,7 @@ static int property_get_all_callbacks_run(
         if (r < 0)
                 return r;
 
-        found_interface =
+        found_interface = !iface ||
                 streq(iface, "org.freedesktop.DBus.Properties") ||
                 streq(iface, "org.freedesktop.DBus.Peer") ||
                 streq(iface, "org.freedesktop.DBus.Introspectable");
@@ -1619,7 +1619,7 @@ static int add_object_vtable_internal(
                 case _SD_BUS_VTABLE_SIGNAL:
 
                         if (!member_name_is_valid(v->x.signal.member) ||
-                            !signature_is_single(strempty(v->x.signal.signature), false)) {
+                            !signature_is_valid(strempty(v->x.signal.signature), false)) {
                                 r = -EINVAL;
                                 goto fail;
                         }