Commit 06b5b4d9 by Stéphane Graber

Merge pull request #795 from brauner/2016-02-02/lxc_ls_exit_zero

lxc-ls: exit 0 when path is not found
parents 57e40de3 607d784d
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment