]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
c api: send lxcpath to destroy command
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 4 Mar 2013 20:11:36 +0000 (14:11 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 4 Mar 2013 20:27:19 +0000 (14:27 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 3eaf41e619ce3c1aae1d2af09457228f33447eaa..404f60a4a20fe7d64907f3532f85b1e9ed783280 100644 (file)
@@ -791,7 +791,7 @@ static bool lxcapi_destroy(struct lxc_container *c)
        if (pid < 0)
                return false;
        if (pid == 0) { // child
-               ret = execlp("lxc-destroy", "lxc-destroy", "-n", c->name, NULL);
+               ret = execlp("lxc-destroy", "lxc-destroy", "-n", c->name, "-P", c->config_path, NULL);
                perror("execl");
                exit(1);
        }