pid1: fix GetUnitProcesses

This effectively reverts one chunk of 657ee2d82b.

For a while I couldn't figure out why 'systemctl status -- -.slice' fails to
list any processes...
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-07-15 17:29:56 +02:00
parent 107c20518b
commit 624e4fcffa
1 changed files with 1 additions and 1 deletions

View 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;