1
0

Escaping leading '.' in cgroup names

Escaping a leading '.' with '_' in the cgroup names

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 0ced83dcfbb19af1201202e1af0a7073c338aabd)
This commit is contained in:
Daniel P. Berrange 2013-05-03 20:56:50 +01:00 committed by Jim Fehlig
parent fdaa5c825c
commit e0dd41e564

View File

@ -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")))