From: Christian Brauner Date: Fri, 15 Jun 2018 11:35:09 +0000 (+0200) Subject: coverity: #1425789 X-Git-Tag: lxc-2.0.10~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a07105205656d6b5b65c1ec864f40165c9fb7b08;p=thirdparty%2Flxc.git coverity: #1425789 Unchecked return value from library Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 5e317c176..eca454783 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -2409,7 +2409,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; } }