]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425789
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 Jun 2018 11:35:09 +0000 (13:35 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 08:25:38 +0000 (09:25 +0100)
Unchecked return value from library

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index 5e317c1760ac6d71c50b4aff0f3d0d3448c9c08a..eca454783182ebb23e6f2f39fd4f313513b17303 100644 (file)
@@ -2409,7 +2409,10 @@ static bool mod_rdep(struct lxc_container *c0, struct lxc_container *c, bool inc
                n = fscanf(f1, "%d", &v);
                fclose(f1);
                if (n == 1 && v == 0) {
-                       remove(path);
+                       ret = remove(path);
+                       if (ret < 0)
+                               ERROR("%s - Failed to remove \"%s\"",
+                                     strerror(errno), path);
                        n = 0;
                }
        }