From a0fa2683373a3fd69d628f62240c8faca25b0361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 20 May 2020 18:08:05 +0200 Subject: [PATCH] basic/efivars: fix errno propagation Fixup for 484f4e5b2d62e885998fa3c09ed4d58b6c38f987. Should fix #15730. --- src/basic/efivars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/efivars.c b/src/basic/efivars.c index 5529113bc5..b34df46926 100644 --- a/src/basic/efivars.c +++ b/src/basic/efivars.c @@ -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; }