From: Serge Hallyn Date: Mon, 4 Mar 2013 20:11:36 +0000 (-0600) Subject: c api: send lxcpath to destroy command X-Git-Tag: lxc-0.9.0.rc1~2^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f597314cdc6efe530f733e6caef6c6490af5ea2;p=thirdparty%2Flxc.git c api: send lxcpath to destroy command Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 3eaf41e61..404f60a4a 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -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); }