Commit 607d784d by Christian Brauner

lxc-ls: exit 0 when path is not found

parent 57e40de3
...@@ -353,8 +353,10 @@ static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args, ...@@ -353,8 +353,10 @@ static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args,
if (!path) if (!path)
goto out; goto out;
if (!dir_exists(path)) if (!dir_exists(path)) {
ret = 0;
goto out; goto out;
}
/* Do not do more work than is necessary right from the start. */ /* Do not do more work than is necessary right from the start. */
if (args->ls_active || (args->ls_active && args->ls_frozen)) 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