diff --git a/src/dosfs.c b/src/dosfs.c index e428457..71abc22 100644 --- a/src/dosfs.c +++ b/src/dosfs.c @@ -34,7 +34,8 @@ open_image(const char *path, int flags, dosfs_t *fsd) 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")); close(ifd); return EOPNOTSUPP;