basic/copy: vodify unlinkat() call
Not much we can do at this point. Coverity CID#1432670.
This commit is contained in:
parent
649bde89ca
commit
e2146e9b67
|
@ -482,7 +482,7 @@ static int hardlink_context_realize(HardlinkContext *c) {
|
|||
c->dir_fd = openat(c->parent_fd, c->subdir, O_RDONLY|O_DIRECTORY|O_CLOEXEC);
|
||||
if (c->dir_fd < 0) {
|
||||
r = -errno;
|
||||
unlinkat(c->parent_fd, c->subdir, AT_REMOVEDIR);
|
||||
(void) unlinkat(c->parent_fd, c->subdir, AT_REMOVEDIR);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue