lxc-ls: set ls_nesting to 0 initially

Otherwise users will always get nested containers listed.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Christian Brauner 2016-01-15 19:57:39 +01:00 committed by Stéphane Graber
parent 21e019c29a
commit 8f43e53503

View File

@ -186,7 +186,7 @@ Options :\n\
-g --groups comma separated list of groups a container must have to be displayed\n", -g --groups comma separated list of groups a container must have to be displayed\n",
.options = my_longopts, .options = my_longopts,
.parser = my_parser, .parser = my_parser,
.ls_nesting = MAX_NESTLVL, .ls_nesting = 0,
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])