diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index aeb596f7d1..d570526a4f 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -128,7 +128,7 @@ static int get_file_version(int fd, char **v) { r = stat_verify_regular(&st); if (r < 0) - return log_error_errno(errno, "EFI binary is not a regular file: %m"); + return log_error_errno(r, "EFI binary is not a regular file: %m"); if (st.st_size < 27) { *v = NULL;