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:
parent
929d07ddcb
commit
a0fa268337
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user