summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-07 03:43:39 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-07 04:13:19 +0200
commitf4579ce704b9db0358b90c282da9536410a4df5a (patch)
tree84cf4c29623e56489d4bec194e92eefd1910d85f /src/install.c
parentad678a066b4ba5d8914dd7d5a4093572841205cf (diff)
dbus: don't try to run AddMatch when connected to a private bus
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 3bf5761b3d..3b70bd1d3d 100644
--- a/src/install.c
+++ b/src/install.c
@@ -791,7 +791,7 @@ static int do_run(void) {
return 0;
}
- if ((r = bus_connect(arg_where == WHERE_SESSION ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &bus, &error)) < 0) {
+ if ((r = bus_connect(arg_where == WHERE_SESSION ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &bus, NULL, &error)) < 0) {
log_error("Failed to get D-Bus connection: %s", error.message);
goto finish;
}