]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
busctl: set a description for the bus connection 27573/head
authorLennart Poettering <lennart@poettering.net>
Fri, 5 May 2023 19:33:56 +0000 (21:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 May 2023 10:08:41 +0000 (12:08 +0200)
Unlike most other bus connections in our codebase this one is created
manually and every setting set invididually. It hence does not have a
description by default (as all automatic connections have). Set one
explicitly.

src/busctl/busctl.c

index 90f20c05a16d7bf788afed85c60c65abe13507b8..820d27da20dbe7b9e2ff847f8abb7d045c219e76 100644 (file)
@@ -77,6 +77,8 @@ static int acquire_bus(bool set_monitor, sd_bus **ret) {
         if (r < 0)
                 return log_error_errno(r, "Failed to allocate bus: %m");
 
+        (void) sd_bus_set_description(bus, "busctl");
+
         if (set_monitor) {
                 r = sd_bus_set_monitor(bus, true);
                 if (r < 0)