]> git.proxmox.com Git - mirror_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>
Fri, 15 Jun 2018 09:39:40 +0000 (11:39 +0200)
Unchecked return value from library

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

index b974deb9ba010a46860a1cca5fad6c732aba0566..10a5a40e282f4cacda27e4a92ad682ed7fe8a850 100644 (file)
@@ -2693,7 +2693,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);
+
                }
        }