Hello community, here is the log from the commit of package parted checked in at Tue Jul 8 23:22:09 CEST 2008. -------- --- parted/parted.changes 2008-05-09 17:20:13.000000000 +0200 +++ parted/parted.changes 2008-07-08 12:11:34.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Jul 8 12:08:30 CEST 2008 - puzel@suse.cz + +- added largest_partition_number.patch + * fixes computation of largest partition number (bnc#397210) + +------------------------------------------------------------------- New: ---- largest_partition_number.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ parted.spec ++++++ --- /var/tmp/diff_new_pack.f28504/_old 2008-07-08 23:16:59.000000000 +0200 +++ /var/tmp/diff_new_pack.f28504/_new 2008-07-08 23:16:59.000000000 +0200 @@ -18,7 +18,7 @@ Group: System/Filesystems Summary: GNU partitioner Version: 1.8.8 -Release: 42 +Release: 50 Source0: %{name}-%{version}.tar.bz2 Patch: always-resize-part.dif Patch1: parted-type.patch @@ -34,6 +34,7 @@ Patch12: gnulib.diff Patch51: parted.tty.patch Patch52: parted.no-O_DIRECT.patch +Patch53: largest_partition_number.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://www.gnu.org/software/parted/ PreReq: %install_info_prereq @@ -85,6 +86,7 @@ %patch12 %patch51 -p1 %patch52 -p1 +%patch53 -p1 %build AUTOPOINT=true autoreconf --force --install @@ -128,6 +130,9 @@ %{_libdir}/*.so %changelog +* Tue Jul 08 2008 puzel@suse.cz +- added largest_partition_number.patch + * fixes computation of largest partition number (bnc#397210) * Fri May 09 2008 schwab@suse.de - Fix gnulib macro and use autoreconf. * Thu Apr 10 2008 ro@suse.de ++++++ largest_partition_number.patch ++++++ diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c index 4c9a2d3..b6453a5 100644 --- a/libparted/arch/linux.c +++ b/libparted/arch/linux.c @@ -2212,7 +2212,7 @@ static int _disk_sync_part_table (PedDisk* disk) { int i; - int last = PED_MAX (ped_disk_get_last_partition_num (disk), 16); + int last = PED_MIN (ped_disk_get_last_partition_num (disk), 16); int* rets = ped_malloc(sizeof(int) * last); int* errnums = ped_malloc(sizeof(int) * last); int ret = 1; @@ -2432,7 +2432,7 @@ static int _dm_reread_part_table (PedDisk* disk) { int rc = 1; - int last = PED_MAX (ped_disk_get_last_partition_num (disk), 16); + int last = PED_MIN (ped_disk_get_last_partition_num (disk), 16); int i; sync(); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org