From: Christian Brauner Date: Thu, 7 Dec 2017 14:18:35 +0000 (+0100) Subject: coverity: #1425890 X-Git-Tag: lxc-2.0.10~497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2bfd4f8f637a0fe6f86a31eb55b4c3f4ba44ce9;p=thirdparty%2Flxc.git coverity: #1425890 silence complaint about unchecked return value from library function Signed-off-by: Christian Brauner --- diff --git a/src/lxc/tools/lxc_copy.c b/src/lxc/tools/lxc_copy.c index b20bc6bc7..37494b330 100644 --- a/src/lxc/tools/lxc_copy.c +++ b/src/lxc/tools/lxc_copy.c @@ -402,7 +402,7 @@ static int do_clone_ephemeral(struct lxc_container *c, if (!mkdtemp(randname)) return -1; if (chmod(randname, 0770) < 0) { - remove(randname); + (void)remove(randname); return -1; } arg->newname = randname + strlen(arg->newpath) + 1;