forked from pool/parted
This commit is contained in:
parent
e062379e55
commit
6db9b44096
17
fix-improper-data-conversion.patch
Normal file
17
fix-improper-data-conversion.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -up ./libparted/labels/gpt.c.orig ./libparted/labels/gpt.c
|
||||
--- ./libparted/labels/gpt.c.orig 2008-10-20 10:05:25.000000000 +0200
|
||||
+++ ./libparted/labels/gpt.c 2008-10-20 10:35:34.000000000 +0200
|
||||
@@ -674,11 +674,10 @@ _parse_header (PedDisk* disk, GuidPartit
|
||||
parted invocation.
|
||||
*/
|
||||
|
||||
- last_usable_if_grown
|
||||
- = PED_CPU_TO_LE64 (disk->dev->length - 2 -
|
||||
+ last_usable_if_grown = disk->dev->length - 2 -
|
||||
((PedSector)(PED_LE32_TO_CPU(gpt->NumberOfPartitionEntries)) *
|
||||
(PedSector)(PED_LE32_TO_CPU(gpt->SizeOfPartitionEntry)) /
|
||||
- disk->dev->sector_size));
|
||||
+ disk->dev->sector_size);
|
||||
|
||||
last_usable_min_default = disk->dev->length - 2 -
|
||||
GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / disk->dev->sector_size;
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 20 11:27:45 CEST 2008 - puzel@suse.cz
|
||||
|
||||
- fix improper data conversion (bnc#435702)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 7 10:55:11 CEST 2008 - puzel@suse.cz
|
||||
|
||||
|
@ -26,7 +26,7 @@ License: GPL v2 or later
|
||||
Group: System/Filesystems
|
||||
Summary: GNU partitioner
|
||||
Version: 1.8.8
|
||||
Release: 87
|
||||
Release: 88
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Patch: always-resize-part.dif
|
||||
Patch1: parted-type.patch
|
||||
@ -46,6 +46,7 @@ Patch53: largest_partition_number.patch
|
||||
Patch54: parted-gpt-mbr-sync.patch
|
||||
Patch55: parted-fdasd-compile-fixes
|
||||
Patch56: parted-no-inttypes-include
|
||||
Patch57: fix-improper-data-conversion.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Url: http://www.gnu.org/software/parted/
|
||||
PreReq: %install_info_prereq
|
||||
@ -101,6 +102,7 @@ Authors:
|
||||
%patch54
|
||||
%patch55 -p1
|
||||
%patch56 -p1
|
||||
%patch57 -p1
|
||||
|
||||
%build
|
||||
AUTOPOINT=true autoreconf --force --install
|
||||
@ -145,6 +147,8 @@ rm -rf "$RPM_BUILD_ROOT"
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Mon Oct 20 2008 puzel@suse.cz
|
||||
- fix improper data conversion (bnc#435702)
|
||||
* Tue Oct 07 2008 puzel@suse.cz
|
||||
- updated largest_partition_number.patch (bnc#428992)
|
||||
* Thu Aug 28 2008 kukuk@suse.de
|
||||
|
Loading…
x
Reference in New Issue
Block a user