diff options
-rw-r--r-- | src/shared/efivars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c index 4fb77428f2..06cf127de1 100644 --- a/src/shared/efivars.c +++ b/src/shared/efivars.c @@ -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); |