We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e17688 commit 3d6bd26Copy full SHA for 3d6bd26
src/detection/bootmgr/bootmgr_linux.c
@@ -20,7 +20,7 @@ const char* ffDetectBootmgr(FFBootmgrResult* result)
20
21
ffEfiFillLoadOption((FFEfiLoadOption *)&buffer[4], result);
22
23
- if (ffReadFileData(FF_EFIVARS_PATH_PREFIX "SecureBoot-" FF_EFI_GLOBAL_GUID, sizeof(buffer), buffer) == 6)
+ if (ffReadFileData(FF_EFIVARS_PATH_PREFIX "SecureBoot-" FF_EFI_GLOBAL_GUID, sizeof(buffer), buffer) >= 5)
24
result->secureBoot = buffer[4] == 1;
25
26
return NULL;
0 commit comments