summaryrefslogtreecommitdiffstats
path: root/src/systemctl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-03-17 09:58:13 +0100
committerDavid Tardon <dtardon@redhat.com>2023-03-17 10:09:07 +0100
commit5a4711e4895e3f7091e0e4da654412232484a5ec (patch)
treeb13de70648eb80c8c9ad4fdb3797399da4246a3f /src/systemctl
parentsystemctl: fix indentation of circular deps (diff)
downloadsystemd-5a4711e4895e3f7091e0e4da654412232484a5ec.tar.xz
systemd-5a4711e4895e3f7091e0e4da654412232484a5ec.zip
systemctl: fix formatting of circular dep.
Before: a.target ○ └─b.target └─... ● └─paths.target After: a.target ○ └─b.target ├─... ● └─paths.target
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-list-dependencies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-list-dependencies.c b/src/systemctl/systemctl-list-dependencies.c
index e0e5ca9ef8..95949ab763 100644
--- a/src/systemctl/systemctl-list-dependencies.c
+++ b/src/systemctl/systemctl-list-dependencies.c
@@ -86,7 +86,7 @@ static int list_dependencies_one(
if (strv_contains(*units, *c)) {
if (!arg_plain) {
printf(" ");
- r = list_dependencies_print("...", level, branches, /* last = */ true);
+ r = list_dependencies_print("...", level, branches, /* last = */ c[1] == NULL);
if (r < 0)
return r;
}