From fce226b4ca67aaf225f729182f08b02d3b326555 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Tue, 7 May 2024 13:16:30 +0200
Subject: [PATCH 0593/1160] bless-boot: pass the right error variable
(cherry picked from commit bad6cb5ae8db5d03ded4c852d624014c8738cc7b)
src/boot/bless-boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -476,7 +476,7 @@ static int verb_set(int argc, char *argv[], void *userdata) {
/* First, fsync() the directory these files are located in */
r = fsync_parent_at(fd, skip_slash(target));
if (r < 0)
- log_debug_errno(errno, "Failed to synchronize image directory, ignoring: %m");
+ log_debug_errno(r, "Failed to synchronize image directory, ignoring: %m");
/* Secondly, syncfs() the whole file system these files are located in */
if (syncfs(fd) < 0)
--
2.33.0