dosfs: detect 0xE9 (JMP rel16) in BPB
This commit is contained in:
parent
cd82b50889
commit
d45aacdcf2
|
@ -34,7 +34,8 @@ open_image(const char *path, int flags, dosfs_t *fsd)
|
||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsd->ib.jmp[0] != 0xEB || fsd->ib.jmp[2] != 0x90) {
|
if ((fsd->ib.jmp[0] != 0xEB || fsd->ib.jmp[2] != 0x90) && /* JMP rel8 */
|
||||||
|
fsd->ib.jmp[0] != 0xE9) { /* JMP rel16 */
|
||||||
DPRINTF(("hm... doesn't look like a FAT image?\n"));
|
DPRINTF(("hm... doesn't look like a FAT image?\n"));
|
||||||
close(ifd);
|
close(ifd);
|
||||||
return EOPNOTSUPP;
|
return EOPNOTSUPP;
|
||||||
|
|
Loading…
Reference in a new issue