bootctl: show correct error code
This commit is contained in:
parent
b5fe7001ee
commit
d90f2add54
|
@ -128,7 +128,7 @@ static int get_file_version(int fd, char **v) {
|
||||||
|
|
||||||
r = stat_verify_regular(&st);
|
r = stat_verify_regular(&st);
|
||||||
if (r < 0)
|
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) {
|
if (st.st_size < 27) {
|
||||||
*v = NULL;
|
*v = NULL;
|
||||||
|
|
Loading…
Reference in New Issue