1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

systemctl: list-dependencies: pass bool where appropriate

(cherry picked from commit 8e481bd292)
This commit is contained in:
Mike Yuan 2023-01-13 16:15:32 +08:00 committed by Zbigniew Jędrzejewski-Szmek
parent 48abbdda56
commit e913b51c5b

View File

@ -83,7 +83,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), 1);
r = list_dependencies_print("...", level + 1, (branches << 1) | (c[1] == NULL ? 0 : 1), /* last = */ true);
if (r < 0)
return r;
}