Skip to content

Commit 3d6bd26

Browse files
committed
Bootmgr (Linux): fix secure boot testing
Fix #1584
1 parent 4e17688 commit 3d6bd26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/bootmgr/bootmgr_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const char* ffDetectBootmgr(FFBootmgrResult* result)
2020

2121
ffEfiFillLoadOption((FFEfiLoadOption *)&buffer[4], result);
2222

23-
if (ffReadFileData(FF_EFIVARS_PATH_PREFIX "SecureBoot-" FF_EFI_GLOBAL_GUID, sizeof(buffer), buffer) == 6)
23+
if (ffReadFileData(FF_EFIVARS_PATH_PREFIX "SecureBoot-" FF_EFI_GLOBAL_GUID, sizeof(buffer), buffer) >= 5)
2424
result->secureBoot = buffer[4] == 1;
2525

2626
return NULL;

0 commit comments

Comments
 (0)