[systemd-devel] [PATCH] bus-driverd: Fix unique name return in driver_get_name_owner
Daniel Mack
daniel at zonque.org
Tue Dec 17 02:22:52 PST 2013
On Tue, Dec 17, 2013 at 09:50:16AM +0100, Lukasz Skalski wrote:
> ---
> 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 ce2e1b2..d2b3e08 100644
> --- a/src/bus-driverd/bus-driverd.c
> +++ b/src/bus-driverd/bus-driverd.c
> @@ -247,7 +247,7 @@ static int driver_get_name_owner(sd_bus *bus, sd_bus_message *m, void *userdata,
> if (r < 0)
> return r;
>
> - r = sd_bus_get_owner(bus, arg0, 0, &creds);
> + r = sd_bus_get_owner(bus, arg0, SD_BUS_CREDS_UNIQUE_NAME, &creds);
> if (r < 0) {
> if (r == -ENOENT)
> return driver_name_info_error(bus, m, arg0, r);
Applied, thanks.
More information about the systemd-devel
mailing list