Unverified Commit 0c7114c5 by Stéphane Graber Committed by GitHub

Merge pull request #2770 from brauner/2018-01-07/container_copy

lxccontainer: fix container copy
parents b5cab139 3d7e738a
...@@ -3691,7 +3691,7 @@ static int clone_update_rootfs(struct clone_update_data *data) ...@@ -3691,7 +3691,7 @@ static int clone_update_rootfs(struct clone_update_data *data)
} }
} else { /* TODO come up with a better way */ } else { /* TODO come up with a better way */
free(bdev->dest); free(bdev->dest);
bdev->dest = strdup(bdev->src); bdev->dest = strdup(lxc_storage_get_path(bdev->src, bdev->type));
} }
if (!lxc_list_empty(&conf->hooks[LXCHOOK_CLONE])) { if (!lxc_list_empty(&conf->hooks[LXCHOOK_CLONE])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment