bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix for ped_partition_get_flag() assertition in parted 1.6.12


From: Jeremy Katz
Subject: [PATCH] Fix for ped_partition_get_flag() assertition in parted 1.6.12
Date: Tue, 24 Aug 2004 16:06:27 -0400

msdos_read() wasn't checking if the part was active before checking the
flags

Attached patch fixes

Jeremy
--- parted-1.6.24/libparted/disk_dos.c.active   2004-08-19 12:35:02.416611656 
-0400
+++ parted-1.6.24/libparted/disk_dos.c  2004-08-19 12:36:17.412210592 -0400
@@ -517,7 +517,8 @@
        /* first look at the boot partition */
        part = NULL;
        while ((part = ped_disk_next_partition (disk, part))) {
-               if (ped_partition_get_flag (part, PED_PARTITION_BOOT)) {
+               if ((ped_partition_is_active (part)) && 
+                   (ped_partition_get_flag (part, PED_PARTITION_BOOT))) {
                        if (probe_filesystem_for_geom (part, bios_geom))
                                return;
                        if (probe_partition_for_geom (part, bios_geom))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]