[systemd-devel] [PATCH] bus-driverd: Fix unique name return in driver_get_name_owner
Lukasz Skalski
l.skalski at partner.samsung.com
Tue Dec 17 00:50:16 PST 2013
---
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);
--
1.8.3.2
More information about the systemd-devel
mailing list