summaryrefslogtreecommitdiffstats
path: root/bus/dispatch.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-06 20:04:47 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-06 20:04:47 +0000
commitc8991b0f95a3b53bc98de9e029780bbe0a0b3114 (patch)
treea34064ca3cac6aba415b29079035866982cdbe0a /bus/dispatch.c
parentbc8b061eec0fd9de6552a9e6118c40283863b6dc (diff)
2003-04-06 Havoc Pennington <hp@pobox.com>
* bus/bus.c (bus_context_new): print the address in here, rather than in main(), because we need to do it before forking the daemon * bus/dispatch.c (send_service_nonexistent_error): set the sender on the service nonexistent error * bus/driver.c (bus_driver_handle_acquire_service): set the sender on the AcquireService reply * test/data/valid-config-files/debug-allow-all.conf.in: Make test server also listen on a UNIX socket so services can connect to it.
Diffstat (limited to 'bus/dispatch.c')
-rw-r--r--bus/dispatch.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c
index 6e3a61e3..2e0fa9d2 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -137,7 +137,14 @@ send_service_nonexistent_error (BusTransaction *transaction,
BUS_SET_OOM (error);
return FALSE;
}
-
+
+ if (!dbus_message_set_sender (error_reply, DBUS_SERVICE_DBUS))
+ {
+ dbus_message_unref (error_reply);
+ BUS_SET_OOM (error);
+ return FALSE;
+ }
+
if (!bus_transaction_send_message (transaction, connection, error_reply))
{
dbus_message_unref (error_reply);