]> git.ipfire.org Git - thirdparty/lxc.git/commit
api: ->save_config() doesn't need to create container dir 4039/head
authorTycho Andersen <tycho@tycho.pizza>
Mon, 29 Nov 2021 13:23:17 +0000 (08:23 -0500)
committerTycho Andersen <tycho@tycho.pizza>
Mon, 29 Nov 2021 13:55:31 +0000 (08:55 -0500)
commit2fde07c3990fe09925699da5d9a1762eb279c497
tree00e4d9f733132da221b7395bdf221441020e55c6
parent7cf6f28ed858307a40128dcfbd676067642d1f27
api: ->save_config() doesn't need to create container dir

If we're saving the config file to somewhere that's *not* the container
dir, we don't need to create the container dir. Let's not do this and
thus not require its parent to exist, which can be confusing, especially in
light of the sparse logging through these functions.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
src/lxc/lxccontainer.c