chiark / gitweb /
bus: when synthesizing messages locally, fill in a sender
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Nov 2013 19:10:08 +0000 (20:10 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Nov 2013 19:14:11 +0000 (20:14 +0100)
src/libsystemd-bus/sd-bus.c

index 01176b0..bfa6ba4 100644 (file)
@@ -1828,6 +1828,8 @@ static int process_timeout(sd_bus *bus) {
         if (r < 0)
                 return r;
 
+        m->sender = "org.freedesktop.DBus";
+
         r = bus_seal_message(bus, m);
         if (r < 0)
                 return r;
@@ -2149,6 +2151,8 @@ static int process_closing(sd_bus *bus, sd_bus_message **ret) {
         if (r < 0)
                 return r;
 
+        m->sender = "org.freedesktop.DBus.Local";
+
         r = bus_seal_message(bus, m);
         if (r < 0)
                 return r;