Skip to content

Commit

Permalink
coverity: #1425890
Browse files Browse the repository at this point in the history
silence complaint about unchecked return value from library function

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 7, 2017
1 parent dcbc861 commit fd41e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/tools/lxc_copy.c
Expand Up @@ -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;
Expand Down

0 comments on commit fd41e9b

Please sign in to comment.