Skip to content

Commit

Permalink
bless-boot: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit bad6cb5)
(cherry picked from commit fce226b)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent 131bd31 commit fedee56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boot/bless-boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fedee56

Please sign in to comment.