]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/lxc_create.c
keep rcfile for lxc-execute as already done for lxc-create
[mirror_lxc.git] / src / lxc / lxc_create.c
index 110d682747eacf093bef2b1bd00efab0c1df42b1..f0167988088e25774f429606e28afc806f837b67 100644 (file)
@@ -67,24 +67,6 @@ Options :\n\
        .checker  = NULL,
 };
 
-static int copy_config_file(const char *name, const char *file)
-{
-       char *src;
-       int ret;
-
-       if (!asprintf(&src, LXCPATH "/%s/config", name)) {
-               ERROR("failed to allocate memory");
-               return -1;
-       }
-
-       ret = lxc_copy_file(file, src);
-       if (ret)
-               ERROR("failed to copy '%s' to '%s'", file, src);
-       free(src);
-
-       return ret;
-}
-
 int main(int argc, char *argv[])
 {
        struct lxc_conf lxc_conf;
@@ -111,12 +93,6 @@ int main(int argc, char *argv[])
                return -1;
        }
 
-       if (my_args.rcfile && copy_config_file(my_args.name, my_args.rcfile)) {
-               ERROR("failed to copy the configuration file");
-               lxc_destroy(my_args.name);
-               return -1;
-       }
-
        INFO("'%s' created", my_args.name);
 
        return 0;