]> git.ipfire.org Git - thirdparty/lxc.git/commit
Make LXC_CLONE_KEEPNAME work
authorChristian Brauner <christianvanbrauner@gmail.com>
Fri, 14 Aug 2015 18:17:21 +0000 (20:17 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 27 Aug 2015 21:21:16 +0000 (17:21 -0400)
commit65f51ca9ae9c99a19c1d075a4c43c458737352d7
tree97bb5b37ee770b9c1847cf8bbec7d3e329431eb9
parentdea53c2d1522abd4286c51af6f0442f04b72d7e1
Make LXC_CLONE_KEEPNAME work

- Passing the LXC_CLONE_KEEPNAME flag to do_lxcapi_clone() was not respected and
  let to unexpected behaviour for e.g. lxc-clone. We wrap
  clear_unexp_config_line() and set_config_item_line() in an appropriate
  if-condition.

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c