From: Zbigniew Jędrzejewski-Szmek Date: Mon, 14 Sep 2020 20:34:43 +0000 (+0200) Subject: basic/copy: vodify unlinkat() call X-Git-Tag: v247-rc1~236^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2146e9b6794624f410046bee85bee28279249bd;p=thirdparty%2Fsystemd.git basic/copy: vodify unlinkat() call Not much we can do at this point. Coverity CID#1432670. --- diff --git a/src/basic/copy.c b/src/basic/copy.c index 6c1d045ea90..69aafbe21a5 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; }