From: Christian Brauner Date: Tue, 1 Mar 2016 20:50:55 +0000 (+0100) Subject: lxc-copy: correct order of copy and original X-Git-Tag: lxc-2.0.0.rc5~6^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a8929b12cbff1f0d6e340ec33e1721c2f7b7152;p=thirdparty%2Flxc.git lxc-copy: correct order of copy and original lxc-copy -n ORIG -N COPY -e accidently printed "Created ORIG as clone of COPY" instead of "Created COPY as clone of ORIG". Fix the ordering. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxc_copy.c b/src/lxc/lxc_copy.c index 155a5883d..003e8a1df 100644 --- a/src/lxc/lxc_copy.c +++ b/src/lxc/lxc_copy.c @@ -358,8 +358,7 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath, return -1; } - INFO("Created container %s as %s of %s\n", newname, - task ? "snapshot" : "copy", c->name); + INFO("Created %s as %s of %s\n", newname, task ? "snapshot" : "copy", c->name); lxc_container_put(clone); @@ -421,7 +420,7 @@ static int do_clone_ephemeral(struct lxc_container *c, goto destroy_and_put; if (!my_args.quiet) - printf("Created %s as %s of %s\n", arg->name, "clone", arg->newname); + printf("Created %s as clone of %s\n", arg->newname, arg->name); if (!arg->daemonize && arg->argc) { clone->want_daemonize(clone, true);