]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bless-boot: pass the right error variable
authorDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:16:30 +0000 (13:16 +0200)
committerDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:16:30 +0000 (13:16 +0200)
src/boot/bless-boot.c

index 8e6c146e69b233a7baa4d9fe1236f35a90f49c43..f86d102f0be142b5a737b924f7f5fc1c3b804ba1 100644 (file)
@@ -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)