From: Michal Eljasiewicz Date: Fri, 11 Oct 2013 04:39:13 +0000 (+0900) Subject: [daemon-fix] Session and system bus differentiate X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6775684087626cf2c7bded8a6611b18634edcf9;p=platform%2Fupstream%2Fdbus.git [daemon-fix] Session and system bus differentiate Change-Id: I2b03b9e682178dae938c039428ba4c60155c6d73 --- diff --git a/bus/kdbus-d.c b/bus/kdbus-d.c index 6dabbc9..88780e3 100644 --- a/bus/kdbus-d.c +++ b/bus/kdbus-d.c @@ -65,7 +65,10 @@ char* make_kdbus_bus(DBusBusType type, DBusError *error) bus_make.head.bloom_size = 64; bus_make.head.flags = KDBUS_MAKE_ACCESS_WORLD; - snprintf(bus_make.name, sizeof(bus_make.name), "%u-kdbus", getuid()); + if(type == DBUS_BUS_SYSTEM) + snprintf(bus_make.name, sizeof(bus_make.name), "%u-kdbus-%s", getuid(), "system"); + else + snprintf(bus_make.name, sizeof(bus_make.name), "%u-kdbus", getuid()); bus_make.n_type = KDBUS_MAKE_NAME; bus_make.n_size = KDBUS_PART_HEADER_SIZE + strlen(bus_make.name) + 1; bus_make.head.size = sizeof(struct kdbus_cmd_bus_make) + bus_make.n_size;