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:
parent
fdaa5c825c
commit
e0dd41e564
@ -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")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user