From: Zbigniew Jędrzejewski-Szmek Date: Mon, 15 Jul 2019 15:29:56 +0000 (+0200) Subject: pid1: fix GetUnitProcesses X-Git-Tag: v243-rc1~120^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=624e4fcffa8c7e3c5d30c10a6b3965db6e5e0f4f;p=thirdparty%2Fsystemd.git 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... --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 53daa9c2ece..220b4c23724 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;