]> git.proxmox.com Git - mirror_lxc.git/commit
cgroupfs: need the full path to setup cpuset
authorQiang Huang <h.huangqiang@huawei.com>
Thu, 23 Jan 2014 06:56:54 +0000 (14:56 +0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 23 Jan 2014 17:21:34 +0000 (11:21 -0600)
commit47f5ede0ec09b393779a7755aa36dc665e2e8fa5
tree4b67bd87d4a61c0c2239eaea0cda590ef449f7e2
parenta8117b3361c9caf1397f4dc9bbb5e6de3af3cdff
cgroupfs: need the full path to setup cpuset

Function file_exists() needs a absolute full path, but we are using
current_entire_path which is not. It will get the wrong result from
file_exists() and case Segmentation fault when we fopen a non-exist
file and try to fscanf from it.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c