mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
criu: fix internal representation of cgroups hierarchical structure
strstartswith() function is incorrect choice for finding parent directory so i change it to issubpath() function Signed-off-by: Dmitrii Chervov <dschervov1@yandex.ru>
This commit is contained in:
parent
b7fa7d304c
commit
030fa4affd
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ static int find_dir(const char *path, struct list_head *dirs, struct cgroup_dir
|
|||
return EXACT_MATCH;
|
||||
}
|
||||
|
||||
if (strstartswith(path, d->path)) {
|
||||
if (issubpath(path, d->path)) {
|
||||
int ret = find_dir(path, &d->children, rdir);
|
||||
if (ret == NO_MATCH) {
|
||||
*rdir = d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue