]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ls: set ls_nesting to 0 initially
authorChristian Brauner <christian.brauner@mailbox.org>
Fri, 15 Jan 2016 18:57:39 +0000 (19:57 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 28 Jan 2016 10:58:57 +0000 (11:58 +0100)
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>
src/lxc/lxc_ls.c

index a4ab9b691c824b43d1aac1bae01ce523ed1598b8..513dbd65ea2451534105ad21102abdb2af60ec14 100644 (file)
@@ -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[])