coverity: #1425789

Unchecked return value from library Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent fd11b7ae
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment