mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
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);
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user