coverity: #1425789

Unchecked return value from library Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 2f7268a9
...@@ -2625,7 +2625,10 @@ static bool mod_rdep(struct lxc_container *c0, struct lxc_container *c, bool inc ...@@ -2625,7 +2625,10 @@ static bool mod_rdep(struct lxc_container *c0, struct lxc_container *c, bool inc
n = fscanf(f1, "%d", &v); n = fscanf(f1, "%d", &v);
fclose(f1); fclose(f1);
if (n == 1 && v == 0) { if (n == 1 && v == 0) {
remove(path); ret = remove(path);
if (ret < 0)
ERROR("%s - Failed to remove \"%s\"",
strerror(errno), path);
n = 0; n = 0;
} }
} }
......
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