mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +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