[lxc-devel] [PATCH 5/6] c api: send lxcpath to destroy command

Stéphane Graber stgraber at ubuntu.com
Mon Mar 4 22:02:38 UTC 2013


On 03/04/2013 03:43 PM, Serge Hallyn wrote:
> Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  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 3eaf41e..404f60a 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);
>  	}
> 


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130304/53695694/attachment.pgp>


More information about the lxc-devel mailing list