From: Christian Brauner Date: Fri, 15 Jan 2016 18:57:39 +0000 (+0100) Subject: lxc-ls: set ls_nesting to 0 initially X-Git-Tag: lxc-2.0.0.beta2~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f43e5350329a5c7edd09c43e520fc683ec393e7;p=thirdparty%2Flxc.git 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 --- 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[])