Skip to content

Commit

Permalink
Added 'mkdir -p' functionality in create_or_remove_cgroup
Browse files Browse the repository at this point in the history
This allows us to run LXC containers from within docker

Signed-off-by: McCabe, Robert J <Robert.McCabe@rockwellcollins.com>
  • Loading branch information
McCabe, Robert J authored and stgraber committed Mar 20, 2017
1 parent 00ed6a7 commit 89b4d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfs.c
Expand Up @@ -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;
Expand Down

0 comments on commit 89b4d6f

Please sign in to comment.