mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
bus-driverd: fix flags translation in driver_request_name
Flags for a name entry (KDBUS_NAME_*) should be set for cmd_name->flags (not conn_flags)
This commit is contained in:
parent
8674debc67
commit
3e8a51eae6
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user