]> 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>
Fri, 15 Dec 2017 12:24:50 +0000 (13:24 +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 3321434aae539052496439bf7d26703365f248f7..1718f84a748b5c25363a89b726ecb2feb599382d 100644 (file)
@@ -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;