char *p = strstr(line, " - ");
if (!p)
return false;
- return strncmp(p, " - fuse.lxcfs ", 14);
+ return strncmp(p, " - fuse.lxcfs ", 14) == 0;
}
/*
char *p = strstr(line, " - ");
if (!p)
return false;
- return strncmp(p, " - cgroup ", 10);
+ return strncmp(p, " - cgroup ", 10) == 0;
}
/* Add a controller to our list of hierarchies */
free(controllerpath);
goto bad;
}
-
+
r = do_secondstage_mounts_if_needed(type, h, controllerpath, path2,
d->container_cgroup);
free(controllerpath);