From: Lennart Poettering Date: Fri, 19 Jul 2019 15:52:26 +0000 (+0200) Subject: bootctl: show correct error code X-Git-Tag: v243-rc1~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d90f2add5470a62d1eede18fdd04cb79d9e13294;p=thirdparty%2Fsystemd.git bootctl: show correct error code --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index aeb596f7d17..d570526a4fd 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;