chiark / gitweb /
libsystemd-bus: sd_bus_request_name: fix return value for kdbus
authorDaniel Mack <zonque@gmail.com>
Tue, 26 Nov 2013 16:24:18 +0000 (17:24 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 29 Nov 2013 13:06:50 +0000 (14:06 +0100)
commited99569df8e568c1998c3b47bea33ec24b89d787
tree9814937872c3d831faa7f0fc7b80cf99dfacb28c
parent0253ddccbb60918d177c13aa6a70c5e1fc9a7e78
libsystemd-bus: sd_bus_request_name: fix return value for kdbus

kdbus returns -EALREADY if the requesting connection is already the
owner of a name, and -EEXIST if the name already exists and the
connection is not able to take it over.

Also, n->flags needs a translation as well to match the SD_BUS_* enum
values.
src/libsystemd-bus/bus-control.c