mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
efivars: fix return code
Was returning 1 on read error.
This commit is contained in:
parent
7a4b2eab6d
commit
742af54adc
@ -111,7 +111,7 @@ int efi_get_variable(
|
||||
n = read(fd, r, (size_t) st.st_size - 4);
|
||||
if (n < 0) {
|
||||
free(r);
|
||||
return (int) -n;
|
||||
return -errno;
|
||||
}
|
||||
if (n != (ssize_t) st.st_size - 4) {
|
||||
free(r);
|
||||
|
Loading…
x
Reference in New Issue
Block a user