[lxc-devel] [PATCH] lxc-ls: set ls_nesting to 0 initially
Christian Brauner
christian.brauner at mailbox.org
Fri Jan 15 18:57:39 UTC 2016
Otherwise users will always get nested containers listed.
Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>
---
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
More information about the lxc-devel
mailing list