Permalink
Browse files

c api: send lxcpath to destroy command

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information...
1 parent 63e414f commit 7f597314cdc6efe530f733e6caef6c6490af5ea2 Serge Hallyn committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lxc/lxccontainer.c
View
2 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);
}

0 comments on commit 7f59731

Please sign in to comment.