]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: fix GetUnitProcesses
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Jul 2019 15:29:56 +0000 (17:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Jul 2019 16:39:26 +0000 (18:39 +0200)
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

index 53daa9c2ece8df277002f7bc222cde8042ad7ec7..220b4c237248b459819a306aee7b2bcae7c22a71 100644 (file)
@@ -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;