From e2146e9b6794624f410046bee85bee28279249bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 14 Sep 2020 22:34:43 +0200 Subject: [PATCH] basic/copy: vodify unlinkat() call Not much we can do at this point. Coverity CID#1432670. --- src/basic/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/copy.c b/src/basic/copy.c index 6c1d045ea9..69aafbe21a 100644 --- a/src/basic/copy.c +++ b/src/basic/copy.c @@ -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; }