From: Christian Brauner Date: Tue, 2 Feb 2016 11:06:29 +0000 (+0100) Subject: lxc-ls: exit 0 when path is not found X-Git-Tag: lxc-2.0.0.rc1~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F795%2Fhead;p=thirdparty%2Flxc.git lxc-ls: exit 0 when path is not found Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c index 05162df11..69e8f8a27 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))