From: David Tardon Date: Tue, 7 May 2024 11:16:30 +0000 (+0200) Subject: bless-boot: pass the right error variable X-Git-Tag: v256-rc2~83^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad6cb5ae8db5d03ded4c852d624014c8738cc7b;p=thirdparty%2Fsystemd.git bless-boot: pass the right error variable --- diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c index 8e6c146e69b..f86d102f0be 100644 --- a/src/boot/bless-boot.c +++ b/src/boot/bless-boot.c @@ -469,7 +469,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_leading_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)