]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425890
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 7 Dec 2017 14:18:35 +0000 (15:18 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 17 Dec 2017 15:26:49 +0000 (16:26 +0100)
silence complaint about unchecked return value from library function

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/tools/lxc_copy.c

index b20bc6bc7d9640e2722cc12588d8f471ecda8ba0..37494b330f3130109d24b0f4eceab653ddbcb1f8 100644 (file)
@@ -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;