* stage2/disk_io.c (next_partition): Mask out bsd partition sub

type when checking if last partition was a bsd partition.
Reported by Heikki Vatiainen <hessu@cs.tut.fi>.
This commit is contained in:
jochen 2000-12-09 15:50:39 +00:00
parent 29aa359512
commit f8e4561c47
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2000-12-09 Jochen Hoenicke <jochen@gnu.org>
* stage2/disk_io.c (next_partition): Mask out bsd partition sub
type when checking if last partition was a bsd partition.
Reported by Heikki Vatiainen <hessu@cs.tut.fi>.
2000-12-09 OKUJI Yoshinori <okuji@gnu.org>
From Leendert Meyer <leen.meyer@home.nl>:

View file

@ -574,7 +574,7 @@ next_partition (unsigned long drive, unsigned long dest,
/* If previous partition is a BSD partition or a PC slice which
contains BSD partitions... */
if ((*partition != 0xFFFFFF && IS_PC_SLICE_TYPE_BSD (*type))
if ((*partition != 0xFFFFFF && IS_PC_SLICE_TYPE_BSD (*type & 0xff))
|| ! (drive & 0x80))
{
if (*type == PC_SLICE_TYPE_NONE)