Merge pull request #13063 from keszybz/cgroup-path-fixes

Cgroup path fixes
This commit is contained in:
Lennart Poettering
2019-07-16 11:53:31 +02:00
committed by GitHub
5 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -388,7 +388,7 @@ int cg_kill_recursive(
while ((r = cg_read_subgroup(d, &fn)) > 0) {
_cleanup_free_ char *p = NULL;
p = path_join(path, fn);
p = path_join(empty_to_root(path), fn);
free(fn);
if (!p)
return -ENOMEM;
@@ -522,7 +522,7 @@ int cg_migrate_recursive(
while ((r = cg_read_subgroup(d, &fn)) > 0) {
_cleanup_free_ char *p = NULL;
p = path_join(pfrom, fn);
p = path_join(empty_to_root(pfrom), fn);
free(fn);
if (!p)
return -ENOMEM;