summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-05-15 13:38:44 -0400
committerPeter Jones <pjones@redhat.com>2013-05-15 13:38:44 -0400
commit1da87c0073ace1cc69276de71efec23f2ccb85a7 (patch)
treef4cb0afcfa5fd185d3d00cd55c6926109da5715d /shim.c
parentb0712c5fc8528335fca87de8448abf6eb17278e2 (diff)
downloadefi-boot-shim-1da87c0073ace1cc69276de71efec23f2ccb85a7.tar.gz
efi-boot-shim-1da87c0073ace1cc69276de71efec23f2ccb85a7.zip
Use the correct define on Open.
The value here doesn't actually change any, but we should still use the right name. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index 16b2faa9..94b97104 100644
--- a/shim.c
+++ b/shim.c
@@ -948,7 +948,7 @@ should_use_fallback(EFI_HANDLE image_handle)
}
rc = uefi_call_wrapper(vh->Open, 5, vh, &fh, L"\\EFI\\BOOT" FALLBACK,
- EFI_FILE_READ_ONLY, 0);
+ EFI_FILE_MODE_READ, 0);
if (EFI_ERROR(rc)) {
Print(L"Could not open \"\\EFI\\BOOT%s\": %d\n", FALLBACK, rc);
uefi_call_wrapper(vh->Close, 1, vh);