On Mon, May 13, 2013 at 11:48:48AM +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berra...@redhat.com>
> 
> Escaping a leading '.' with '_' in the cgroup names
> 
> Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
> ---
>  src/util/vircgroup.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
> index 473d2fc..4de1d55 100644
> --- a/src/util/vircgroup.c
> +++ b/src/util/vircgroup.c
> @@ -1106,7 +1106,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")))

ACK,

Daniel

-- 
Daniel Veillard      | Open Source and Standards, Red Hat
veill...@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to