]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC fix virCgroupGetValueStr problem with \n
authorRyota Ozaki <ozaki.ryota@gmail.com>
Mon, 19 Oct 2009 12:29:42 +0000 (14:29 +0200)
committerDaniel Veillard <veillard@redhat.com>
Mon, 19 Oct 2009 12:29:42 +0000 (14:29 +0200)
commit41fa653f322805b0a492205f91abebe09d594cc0
tree9ac31b9402eed5ae71880d17656ed9616725749b
parent4f4a1deccbd1f97bd715ffc12e9cb89394a1098e
LXC fix virCgroupGetValueStr problem with \n

A cgroup file returns integer value terminated with '\n' and remaining
it has sometimes harmful effects, for example it leads virStrToLong_ull
to fail.
* src/util/cgroup.c: strip out terminating \n when reading a value
src/util/cgroup.c