From d90f2add5470a62d1eede18fdd04cb79d9e13294 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Jul 2019 17:52:26 +0200 Subject: [PATCH] bootctl: show correct error code --- src/boot/bootctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;