[systemd-devel] [PATCH] bus-driverd: fix flags translation in driver_request_name
Lukasz Skalski
l.skalski at partner.samsung.com
Wed Dec 18 04:32:13 PST 2013
Flags for a name entry (KDBUS_NAME_*) should be set for
cmd_name->flags (not conn_flags)
---
src/bus-driverd/bus-driverd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index b11eb55..f28dc57 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -303,7 +303,7 @@ static int driver_request_name(sd_bus *bus, sd_bus_message *m, void *userdata, s
n = alloca0(size);
n->size = size;
memcpy(n->name, name, l+1);
- kdbus_translate_request_name_flags(flags, (uint64_t *) &n->conn_flags);
+ kdbus_translate_request_name_flags(flags, (uint64_t *) &n->flags);
/* This function is open-coded because we request the name 'on behalf'
* of the requesting connection */
--
1.8.3.2
More information about the systemd-devel
mailing list