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

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

index 3e07bf5bdbc127566518a7b3eef878d96a1a4721..d5715b67d177f94f58b243933ae6bbe8e01b21e8 100644 (file)
@@ -2477,7 +2477,10 @@ static bool mod_rdep(struct lxc_container *c0, struct lxc_container *c, bool inc
                if (stat(path, &fbuf) < 0)
                        goto out;
                if (!fbuf.st_size) {
-                       remove(path);
+                       ret = remove(path);
+                       if (ret < 0)
+                               SYSERROR("Failed to remove \"%s\"", path);
+
                }
        }