diff options
Diffstat (limited to 'src/boot/bootctl.c')
-rw-r--r-- | src/boot/bootctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 294d5922cf..b9659d4860 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -428,8 +428,7 @@ static int copy_file_with_version_check(const char *from, const char *to, bool f (void) fsync_directory_of_file(fd_to); - r = renameat(AT_FDCWD, t, AT_FDCWD, to); - if (r < 0) { + if (renameat(AT_FDCWD, t, AT_FDCWD, to) < 0) { (void) unlink_noerrno(t); return log_error_errno(errno, "Failed to rename \"%s\" to \"%s\": %m", t, to); } |