hal/hald/linux block_class_device.c,1.76,1.77
Kay Sievers
kay at freedesktop.org
Thu Sep 23 04:06:16 PDT 2004
Update of /cvs/hal/hal/hald/linux
In directory gabe:/tmp/cvs-serv21168/hald/linux
Modified Files:
block_class_device.c
Log Message:
2004-09-23 Kay Sievers <kay.sievers at vrfy.org>
* hald/linux/block_class_device.c: (block_class_pre_process): fix
matching of volume_id partition index to block device partition index
Index: block_class_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/block_class_device.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- block_class_device.c 21 Sep 2004 20:16:42 -0000 1.76
+++ block_class_device.c 23 Sep 2004 11:06:13 -0000 1.77
@@ -1276,9 +1276,9 @@
if (volume_id_probe(vid, VOLUME_ID_MSDOSPARTTABLE, 0, size) == 0) {
HAL_INFO (("Number of partitions = %d", vid->partition_count));
- if (partition_number >= 0 && partition_number < vid->partition_count) {
+ if (partition_number > 0 && partition_number <= vid->partition_count) {
struct volume_id_partition *p;
- p = &vid->partitions[partition_number];
+ p = &vid->partitions[partition_number-1];
hal_device_property_set_int (
More information about the hal-commit
mailing list