[systemd-devel] [PATCH] bus-driverd: fix flags translation in driver_request_name

Lennart Poettering lennart at poettering.net
Wed Dec 18 10:33:51 PST 2013


On Wed, 18.12.13 13:32, Lukasz Skalski (l.skalski at partner.samsung.com) wrote:

Thanks!

Applied!

> 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 */


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list