chiark / gitweb /
libsystemd-bus: sd_bus_request_name: use kdbus_translate_request_name_flags()
authorDaniel Mack <zonque@gmail.com>
Fri, 29 Nov 2013 20:58:39 +0000 (21:58 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 29 Nov 2013 21:01:34 +0000 (22:01 +0100)
src/libsystemd-bus/bus-control.c

index daa10eb..a0eeb30 100644 (file)
@@ -68,7 +68,7 @@ _public_ int sd_bus_request_name(sd_bus *bus, const char *name, int flags) {
                 l = strlen(name);
                 n = alloca0(offsetof(struct kdbus_cmd_name, name) + l + 1);
                 n->size = offsetof(struct kdbus_cmd_name, name) + l + 1;
-                n->flags = flags;
+                kdbus_translate_request_name_flags(flags, (uint64_t *) &n->flags);
                 memcpy(n->name, name, l+1);
 
 #ifdef HAVE_VALGRIND_MEMCHECK_H