From: David Tardon Date: Fri, 17 Mar 2023 08:53:23 +0000 (+0100) Subject: systemctl: fix indentation of circular deps X-Git-Tag: v254-rc1~973^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9f2f486f3d1dd1cd2a58cd384b0e88970e2fda9;p=thirdparty%2Fsystemd.git systemctl: fix indentation of circular deps We're still at level `level` here. Before: b.target ○ ├─a.target │ └─... ● └─paths.target After: b.target ○ ├─a.target │ └─... ● └─paths.target Fixes #26052. --- diff --git a/src/systemctl/systemctl-list-dependencies.c b/src/systemctl/systemctl-list-dependencies.c index 6878954268d..e0e5ca9ef8a 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 + 1, (branches << 1) | (c[1] == NULL ? 0 : 1), /* last = */ true); + r = list_dependencies_print("...", level, branches, /* last = */ true); if (r < 0) return r; }