]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/tools/lxc_copy.c
lxc-copy: cleanup
authorChristian Brauner <christian.brauner@mailbox.org>
Thu, 28 Jan 2016 15:02:01 +0000 (16:02 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Mon, 1 Feb 2016 09:28:43 +0000 (10:28 +0100)
commit534dfdeb6b3a5cfeb3410990f17d661c85537201
tree21ea5f56e4c327dd2983b5db100ac9539226849f
parentddf81220fa3683b234f2339c0b571dcae5796d9c
lxc-copy: cleanup

- make free_mnts() work directly on the globals mnt_table and mnt_table_size
- have free_mnts() set mnt_table = NULL and mnt_table_size = 0 when its done to
  avoid double frees
- simplify error-handling in do_clone_ephemeral()
- do_clone_ephemeral(): when chmod() falls to set permissions on the temporary
  folder we created for mkdtemp() remove the folder
- simplify error handling in main()

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/lxc_copy.c