Unchecked return value from library

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-06-15 13:35:09 +02:00
parent 77f948545c
commit dc509bf252
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -2625,7 +2625,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;
}
}