Setting the prep flag was not clearing the palo flag and vica versa
* libparted/labels/dos.c(msdos_partition_set_flag): Fix prep / palo
flag handling.
---
 libparted/labels/dos.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libparted/labels/dos.c b/libparted/labels/dos.c
index 17209da..c0190a1 100644
--- a/libparted/labels/dos.c
+++ b/libparted/labels/dos.c
@@ -1454,6 +1454,7 @@ msdos_partition_set_flag (PedPartition* part,
                        dos_data->hidden = 0;
                        dos_data->raid = 0;
                        dos_data->lvm = 0;
+                       dos_data->prep = 0;
                        dos_data->diag = 0;
                }
                dos_data->palo = state;
@@ -1464,6 +1465,7 @@ msdos_partition_set_flag (PedPartition* part,
                        dos_data->hidden = 0;
                        dos_data->raid = 0;
                        dos_data->lvm = 0;
+                       dos_data->palo = 0;
                        dos_data->diag = 0;
                }
                dos_data->prep = state;
-- 
1.7.0.1



_______________________________________________
bug-parted mailing list
bug-parted@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-parted

Reply via email to