Skip to content

Commit

Permalink
lxc-ls: exit 0 when path is not found
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
  • Loading branch information
Christian Brauner committed Feb 2, 2016
1 parent 57e40de commit 607d784
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lxc/lxc_ls.c
Expand Up @@ -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))
Expand Down

0 comments on commit 607d784

Please sign in to comment.