[lxc-devel] [PATCH] lxc-ls: set ls_nesting to 0 initially

Serge Hallyn serge.hallyn at ubuntu.com
Fri Jan 15 20:43:36 UTC 2016


Quoting Christian Brauner (christian.brauner at mailbox.org):
> Otherwise users will always get nested containers listed.
> 
> Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>

I'd actually looked for that and somehow missed it.

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/lxc_ls.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c
> index 7d46426..dd73f19 100644
> --- a/src/lxc/lxc_ls.c
> +++ b/src/lxc/lxc_ls.c
> @@ -186,7 +186,7 @@ Options :\n\
>    -g --groups        comma separated list of groups a container must have to be displayed\n",
>  	.options = my_longopts,
>  	.parser = my_parser,
> -	.ls_nesting = MAX_NESTLVL,
> +	.ls_nesting = 0,
>  };
>  
>  int main(int argc, char *argv[])
> -- 
> 2.7.0
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list