From 8f43e5350329a5c7edd09c43e520fc683ec393e7 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 15 Jan 2016 19:57:39 +0100 Subject: [PATCH] lxc-ls: set ls_nesting to 0 initially Otherwise users will always get nested containers listed. Signed-off-by: Christian Brauner Acked-by: Serge E. Hallyn --- 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 a4ab9b691..513dbd65e 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[])