From: Christian Brauner Date: Thu, 7 Dec 2017 14:18:35 +0000 (+0100) Subject: coverity: #1425890 X-Git-Tag: lxc-3.0.0.beta1~128^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd41e9b7bfaba80f55c8e01dced0cd434d99eb36;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 3321434aa..1718f84a7 100644 --- a/src/lxc/tools/lxc_copy.c +++ b/src/lxc/tools/lxc_copy.c @@ -417,7 +417,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;