提交 e0dd41e5 编写于 作者: D Daniel P. Berrange 提交者: Jim Fehlig

Escaping leading '.' in cgroup names

Escaping a leading '.' with '_' in the cgroup names
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 0ced83dc)
上级 fdaa5c82
......@@ -1118,7 +1118,8 @@ static int virCgroupPartitionNeedsEscaping(const char *path)
if (STRPREFIX(path, "cgroup."))
return 1;
if (path[0] == '_')
if (path[0] == '_' ||
path[0] == '.')
return 1;
if (!(fp = fopen("/proc/cgroups", "r")))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册