[lxc-devel] [PATCH] lxc-autostart: Respect -P

Michael H. Warfield mhw at WittsEnd.com
Tue Jun 17 16:43:49 UTC 2014


On Tue, 2014-06-17 at 11:31 -0400, Stéphane Graber wrote:
> -P was only used for log setup and not when retrieving the container list.
> 
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Michael H. Warfield <mhw at WittsEnd.com>

> ---
>  src/lxc/lxc_autostart.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/lxc_autostart.c b/src/lxc/lxc_autostart.c
> index 920de67..d0e3bfa 100644
> --- a/src/lxc/lxc_autostart.c
> +++ b/src/lxc/lxc_autostart.c
> @@ -343,7 +343,7 @@ int main(int argc, char *argv[])
>  		return 1;
>  	lxc_log_options_no_override();
>  
> -	count = list_defined_containers(NULL, NULL, &containers);
> +	count = list_defined_containers(my_args.lxcpath[0], NULL, &containers);
>  
>  	if (count < 0)
>  		return 1;
> -- 
> 1.9.1
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
> 

-- 
Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140617/9682b170/attachment.sig>


More information about the lxc-devel mailing list