Chameleon

Chameleon Commit Details

Date:2010-03-09 21:08:42 (4 years 7 months ago)
Author:JrCs
Commit:120
Parents: 119
Message:Changed "Default Partition" behaviour to accept only native system volumes or foreign partitions.
Changes:
M/branches/JrCs/i386/libsaio/sys.c

File differences

branches/JrCs/i386/libsaio/sys.c
714714
715715
716716
717
717718
718719
719720
......
724725
725726
726727
727
728
729
728730
729731
730732
/*
* Checking "Default Partition" key in system configuration - use format: hd(x,y) -
* to override the default selection.
* We accept only kBVFlagSystemVolume or kBVFlagForeignBoot volumes.
*/
const char * val;
char testStr[64];
for ( bvr = chain; bvr; bvr = bvr->next )
{
*testStr = '\0';
if ( bvr->biosdev >= 0x80 && bvr->biosdev < 0x100 )
if ( bvr->biosdev >= 0x80 && bvr->biosdev < 0x100
&& ( bvr->flags & ( kBVFlagSystemVolume|kBVFlagForeignBoot ) ) )
{
sprintf(testStr, "hd(%d,%d)", bvr->biosdev - 0x80, bvr->part_no);
if (strcmp(testStr, val) == 0)

Archive Download the corresponding diff file

Revision: 120