The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/795
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) ===
From cf04c180407b074790f1b6740756ff48b55ff8d9 Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@mailbox.org> Date: Tue, 2 Feb 2016 12:06:29 +0100 Subject: [PATCH] lxc-ls: exit 0 when path is not found Signed-off-by: Christian Brauner <christian.brau...@mailbox.org> --- src/lxc/lxc_ls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c index 05162df..69e8f8a 100644 --- a/src/lxc/lxc_ls.c +++ b/src/lxc/lxc_ls.c @@ -353,8 +353,10 @@ static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args, if (!path) goto out; - if (!dir_exists(path)) + if (!dir_exists(path)) { + ret = 0; goto out; + } /* Do not do more work than is necessary right from the start. */ if (args->ls_active || (args->ls_active && args->ls_frozen))
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel