Commit 52ce2c35 authored by Mike Hibler's avatar Mike Hibler

Be a little more lax about the signature check.

Based on an actually observed EFI boot partition.
parent dcb1d404
......@@ -120,8 +120,8 @@ readboot(int dosfs, struct bootblock *boot)
|| fsinfo[0x1ff] != 0xaa
|| fsinfo[0x3fc]
|| fsinfo[0x3fd]
|| fsinfo[0x3fe] != 0x55
|| fsinfo[0x3ff] != 0xaa) {
|| (fsinfo[0x3fe] && fsinfo[0x3fe] != 0x55)
|| (fsinfo[0x3ff] && fsinfo[0x3ff] != 0xaa)) {
pwarn("Invalid signature in fsinfo block\n");
return FSFATAL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment