From: Christian Brauner Date: Fri, 15 Jun 2018 09:37:11 +0000 (+0200) Subject: coverity: #1425789 X-Git-Tag: lxc-3.1.0~245^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71261a5c3f6df08b9db0651bbb2314219a751bcb;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 b974deb9b..10a5a40e2 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -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); + } }