diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-14 22:34:43 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-14 22:34:43 +0200 |
commit | e2146e9b6794624f410046bee85bee28279249bd (patch) | |
tree | 69de0ee7d0ff27e0077047c8f8d271aff741ce63 /src | |
parent | 649bde89caccdb1187ac744bd76051fdcd687218 (diff) | |
download | systemd-e2146e9b6794624f410046bee85bee28279249bd.tar.gz |
basic/copy: vodify unlinkat() call
Not much we can do at this point.
Coverity CID#1432670.
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |