summaryrefslogtreecommitdiffstats
path: root/src/shared/find-esp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/find-esp.c')
-rw-r--r--src/shared/find-esp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c
index 1569b46bdf..fca24329d4 100644
--- a/src/shared/find-esp.c
+++ b/src/shared/find-esp.c
@@ -435,7 +435,8 @@ int find_esp_and_warn(
goto found;
}
- FOREACH_STRING(path, "/efi", "/boot", "/boot/efi") {
+ FOREACH_STRING(_path, "/efi", "/boot", "/boot/efi") {
+ path = _path;
r = verify_esp(path, /* searching= */ true, unprivileged_mode, ret_part, ret_pstart, ret_psize, ret_uuid, ret_devid);
if (r >= 0)