1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

basic/efivars: fix errno propagation

Fixup for 484f4e5b2d. Should fix #15730.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-05-20 18:08:05 +02:00
parent 929d07ddcb
commit a0fa268337

View File

@ -331,7 +331,7 @@ int systemd_efi_options_variable(char **line) {
* does, let's return a recognizable error (EPERM), and if not ENODATA. */
if (access(k, F_OK) < 0)
return errno == -ENOENT ? -ENODATA : -errno;
return errno == ENOENT ? -ENODATA : -errno;
return -EPERM;
}