summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-05-05 21:33:56 +0200
committerLennart Poettering <lennart@poettering.net>2023-05-16 12:08:41 +0200
commitacf493390ac601d90dc4ac188475635a5c327522 (patch)
tree5a2eeb8ba88304a350b1a64fb1ce2da26f7543d3 /src
parent7b674a9ee86dad21ba631b82c5b46938a3a587d8 (diff)
downloadsystemd-acf493390ac601d90dc4ac188475635a5c327522.tar.gz
busctl: set a description for the bus connection
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.
Diffstat (limited to 'src')
-rw-r--r--src/busctl/busctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c
index 90f20c05a1..820d27da20 100644
--- a/src/busctl/busctl.c
+++ b/src/busctl/busctl.c
@@ -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)