From 7f597314cdc6efe530f733e6caef6c6490af5ea2 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 4 Mar 2013 14:11:36 -0600 Subject: [PATCH] c api: send lxcpath to destroy command Signed-off-by: Serge Hallyn --- src/lxc/lxccontainer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2