Commit 3dad8c43 by Stéphane Graber Committed by GitHub

Merge pull request #1100 from brauner/2016-07-25/fix_cgfsng_lxcfs_and_cgroupfs_checkfuns

cgfsng: fix is_lxcfs() and is_cgroupfs()
parents 9d206b25 2f62fb00
......@@ -438,7 +438,7 @@ static bool is_lxcfs(const char *line)
char *p = strstr(line, " - ");
if (!p)
return false;
return strncmp(p, " - fuse.lxcfs ", 14);
return strncmp(p, " - fuse.lxcfs ", 14) == 0;
}
/*
......@@ -488,7 +488,7 @@ static bool is_cgroupfs(char *line)
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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment