mirror of
https://github.com/systemd/systemd.git
synced 2026-08-02 22:20:20 +00:00
bus: when synthesizing messages locally, fill in a sender
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user