basic/efivars: fix errno propagation
Fixup for 484f4e5b2d. Should fix #15730.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user