]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
Make LXC_CLONE_KEEPNAME work
authorChristian Brauner <christianvanbrauner@gmail.com>
Fri, 14 Aug 2015 18:17:21 +0000 (20:17 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 27 Aug 2015 20:14:08 +0000 (15:14 -0500)
commit3d7ad474b07937d39c6c8d7c7fcba67a46900eb0
treef26d9443113358fa0a172726e51dbadca6aa8c5a
parentf29bb5d52b777248f6e94c26722a54522f98beef
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