Chameleon > Bug Reports

bug in revision r2334

(1/1)

parshin-karoslav:
Exquse my English, I learn French at school.
I have got starvation when launch Chameleon r2334 with connected HDD, having non-system HFS+ partition (TimeMachine backup area). Analyzing the source code walks into file i386/libsaio/disk.c, function getOSVersion(BVRef, char*). The end of that function in trunk svn thread is:
--- Code: --- if(!valid) {
int fh = -1;
sprintf(dirSpec, "hd(%d,%d)/.PhysicalMediaInstall", BIOS_DEV_UNIT(bvr), bvr->part_no);
fh = open(dirSpec, 0);

if (fh >= 0) {
valid = true;
bvr->OSisInstaller = true;
strcpy(bvr->OSVersion, "10.7"); // 10.7 +
} else {
close(fh);
}
}

--- End code ---
but must be:
--- Code: --- if(!valid) {
int fh = -1;
sprintf(dirSpec, "hd(%d,%d)/.PhysicalMediaInstall", BIOS_DEV_UNIT(bvr), bvr->part_no);
fh = open(dirSpec, 0);

if (fh >= 0) {
valid = true;
bvr->OSisInstaller = true;
strcpy(bvr->OSVersion, "10.7"); // 10.7 +
close(fh);
} else {
;
}
}

--- End code ---
Bootloder, compiled with these changes don't get starvation on non-system HFS+ partition.

Navigation

[0] Message Index

Go to full version