diff options
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index c10fcc54df..65b8b7b961 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -156,6 +156,9 @@ int bus_kernel_take_fd(sd_bus *b) { if (r < 0) return -errno; + if (asprintf(&b->unique_name, ":1.%llu", (unsigned long long) hello.id) < 0) + return -ENOMEM; + b->is_kernel = true; r = bus_start_running(b); |