[PATCH] Fix atari label false positives
The atari label gets false positives easily, so probe it after
all other labels have said no.
---
NEWS | 2 ++
libparted/libparted.c | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 2c903ca5..a5ec44ee 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ GNU parted NEWS -*- outline -*-
** Bug Fixes
+ Fix atari disklabel false positives by probing other labels first.
+
Fix set and disk_set to not crash when there are no flags to set.
Fix resizepart to adjust the end to be -1 sector when using iec
diff --git a/libparted/libparted.c b/libparted/libparted.c
index d855d0e6..e864d1b3 100644
--- a/libparted/libparted.c
+++ b/libparted/libparted.c
@@ -85,7 +85,7 @@ init_disk_types ()
#if defined __s390__ || defined __s390x__
ped_disk_dasd_init();
#endif
-
+ ped_disk_atari_init ();
ped_disk_sun_init ();
#ifdef ENABLE_PC98
ped_disk_pc98_init ();
@@ -97,7 +97,6 @@ init_disk_types ()
ped_disk_bsd_init ();
ped_disk_amiga_init ();
ped_disk_aix_init ();
- ped_disk_atari_init ();
}
extern void ped_file_system_amiga_init (void);
--
2.17.0
Reply to: