From 624e4fcffa8c7e3c5d30c10a6b3965db6e5e0f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 15 Jul 2019 17:29:56 +0200 Subject: [PATCH] pid1: fix GetUnitProcesses This effectively reverts one chunk of 657ee2d82b73818d0ee8c3c5962c1cb2dbd52b76. For a while I couldn't figure out why 'systemctl status -- -.slice' fails to list any processes... --- src/core/dbus-unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 53daa9c2ec..220b4c2372 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -1062,7 +1062,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) { if (r == 0) break; - j = path_join(p, g); + j = path_join(empty_to_root(p), g); if (!j) return -ENOMEM;