basic/copy: vodify unlinkat() call

Not much we can do at this point.

Coverity CID#1432670.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-14 22:34:43 +02:00
parent 649bde89ca
commit e2146e9b67
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}