bootctl: show correct error code

This commit is contained in:
Lennart Poettering 2019-07-19 17:52:26 +02:00 committed by Yu Watanabe
parent b5fe7001ee
commit d90f2add54
1 changed files with 1 additions and 1 deletions

View File

@ -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;