]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ls: exit 0 when path is not found 795/head
authorChristian Brauner <christian.brauner@mailbox.org>
Tue, 2 Feb 2016 11:06:29 +0000 (12:06 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Tue, 2 Feb 2016 11:46:15 +0000 (12:46 +0100)
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/lxc_ls.c

index 05162df11d3a967d36db2ca6693415c3a78a795c..69e8f8a276455b6ac1816142ec3b52ed67002d1c 100644 (file)
@@ -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))