Don't claim all MBR's have subtype 165 on i386.

Spotted by:	Frode Nordahl <frode@nordahl.net>
This commit is contained in:
phk 2002-11-02 10:57:44 +00:00
parent 45330340f4
commit 01e8832a61
2 changed files with 2 additions and 3 deletions

View File

@ -244,7 +244,6 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
case mbr:
case extended:
case freebsd:
subtype = 0xa5;
c1 = Find_Mother_Chunk(d->chunks, offset, end, whole);
break;
case part:

View File

@ -223,9 +223,9 @@ Int_Open_Disk(const char *name)
if (!strcmp(t, "SUN"))
i = Add_Chunk(d, off, len, n, part, 0, 0, 0);
else if (!strcmp(t, "MBR") && ty == 165)
i = Add_Chunk(d, off, len, n, freebsd, 0, 0, 0);
i = Add_Chunk(d, off, len, n, freebsd, ty, 0, 0);
else if (!strcmp(t, "MBR"))
i = Add_Chunk(d, off, len, n, mbr, 0, 0, 0);
i = Add_Chunk(d, off, len, n, mbr, ty, 0, 0);
else if (!strcmp(t, "BSD"))
i = Add_Chunk(d, off, len, n, part, 0, 0, 0);
else if (!strcmp(t, "PC98"))