diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-11 02:22:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-11 02:22:46 +0200 |
commit | b574246b4f8e4eb86c29c38c7df47b541b68188a (patch) | |
tree | b42d2c6f432a64abe2dd6b23a580026212644cb5 /src/dbus-common.c | |
parent | 7740296dcf581bbaaffa74f6f97a97d1def85e12 (diff) |
dbus: use private connections wherever possible
Diffstat (limited to 'src/dbus-common.c')
-rw-r--r-- | src/dbus-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus-common.c b/src/dbus-common.c index 11d989d7c3..267ab2646c 100644 --- a/src/dbus-common.c +++ b/src/dbus-common.c @@ -62,7 +62,7 @@ int bus_connect(DBusBusType t, DBusConnection **_bus, bool *private, DBusError * /* If we are root, then let's not go via the bus */ if (geteuid() == 0 && t == DBUS_BUS_SYSTEM) { - if (!(bus = dbus_connection_open("unix:abstract=/org/freedesktop/systemd1/private", error))) + if (!(bus = dbus_connection_open_private("unix:abstract=/org/freedesktop/systemd1/private", error))) return -EIO; if (bus_check_peercred(bus) < 0) { |