summaryrefslogtreecommitdiff
path: root/src/bus-driverd/bus-driverd.c
diff options
context:
space:
mode:
authorLukasz Skalski <l.skalski@partner.samsung.com>2013-12-17 09:50:16 +0100
committerDaniel Mack <zonque@gmail.com>2013-12-17 11:16:49 +0100
commitf92f3ff96777048c1f21d5cc4548401b3c5047bc (patch)
tree573a781655114516252305d2c62b8085f0934fcb /src/bus-driverd/bus-driverd.c
parenta53692f7b4fb0af771bd510436cc592ef2919f86 (diff)
bus-driverd: Fix unique name return in driver_get_name_owner
Diffstat (limited to 'src/bus-driverd/bus-driverd.c')
-rw-r--r--src/bus-driverd/bus-driverd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index ce2e1b2138..d2b3e085aa 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);