Commit 7f597314 by Serge Hallyn

c api: send lxcpath to destroy command

parent 63e414f8
...@@ -791,7 +791,7 @@ static bool lxcapi_destroy(struct lxc_container *c) ...@@ -791,7 +791,7 @@ static bool lxcapi_destroy(struct lxc_container *c)
if (pid < 0) if (pid < 0)
return false; return false;
if (pid == 0) { // child 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"); perror("execl");
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment