summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-bus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-29 20:10:08 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-29 20:14:11 +0100
commit34a2c9e841f66ffdcd81aeaedacec2195cfd472d (patch)
tree0ffda89ea73fc29c369323f7c826b43025395021 /src/libsystemd-bus/sd-bus.c
parentb5dda4d84a7ff29081074de8904f882eda3d96c1 (diff)
bus: when synthesizing messages locally, fill in a sender
Diffstat (limited to 'src/libsystemd-bus/sd-bus.c')
-rw-r--r--src/libsystemd-bus/sd-bus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 01176b010e..bfa6ba4dd6 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -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;