From 2f604eb5755e2fdcd3b1e94f902693fe87ce6060 Mon Sep 17 00:00:00 2001 From: "McCabe, Robert J" Date: Wed, 15 Feb 2017 14:36:03 -0600 Subject: [PATCH] Added 'mkdir -p' functionality in create_or_remove_cgroup This allows us to run LXC containers from within docker Signed-off-by: McCabe, Robert J --- src/lxc/cgroups/cgfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/cgroups/cgfs.c b/src/lxc/cgroups/cgfs.c index 84992009a..3bfa52397 100644 --- a/src/lxc/cgroups/cgfs.c +++ b/src/lxc/cgroups/cgfs.c @@ -1880,7 +1880,7 @@ static int create_or_remove_cgroup(bool do_remove, } else r = rmdir(buf); } else - r = mkdir(buf, 0777); + r = mkdir_p(buf, 0777); saved_errno = errno; free(buf); errno = saved_errno;