]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
templates have to be coppied in proper way to template_table structure
authorIvana Hutarova Varekova <varekova@redhat.com>
Thu, 9 May 2013 12:04:00 +0000 (14:04 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Thu, 9 May 2013 12:04:00 +0000 (14:04 +0200)
commit049774b40273e8427d0658d505a63d8814491db5
tree1cbab2b0f40b1276e6da2f7dd64f914325ee3bf9
parent61999fbd9e4613b87b99b1265ce2528e9844ce6c
templates have to be coppied in proper way to template_table structure

cgroup_reload_cached_templates and cgroup_init_templates_cache functions fill structure template_table in old version the data are coppied
(memcpy function) from config_template_table.
This causes problem if both template_table and config_template_table are reloaded or if config_template_table is updated. Patch fix this problem and copy data properly (cgroup_copy_cgroup function)
    The reproducer of this bug is described in http://sourceforge.net/mailarchive/forum.php?thread_name=khtfkj%24c8l%241%40ger.gmane.org&forum_name=libcg-devel

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Acked-By: Jan Safranek <jsafrane@redhat.com>
src/config.c