rpms/parted/devel parted-1.8.1-blankdisk-segv.patch, NONE, 1.1 parted.spec, 1.91, 1.92

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Dec 15 20:59:29 UTC 2006


Author: dcantrel

Update of /cvs/dist/rpms/parted/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19954

Modified Files:
	parted.spec 
Added Files:
	parted-1.8.1-blankdisk-segv.patch 
Log Message:
* Fri Dec 15 2006 David Cantrell <dcantrell at redhat.com> - 1.8.1-2
- Fix a segfault when initializing new volumes (pjones)


parted-1.8.1-blankdisk-segv.patch:
 parted.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE parted-1.8.1-blankdisk-segv.patch ---
--- parted-1.8.1/parted/parted.c.segv	2006-12-15 15:33:23.000000000 -0500
+++ parted-1.8.1/parted/parted.c	2006-12-15 15:33:40.000000000 -0500
@@ -580,12 +580,11 @@
         if (!disk) ped_exception_catch ();
         ped_exception_leave_all ();
 
-	if (!_disk_warn_loss (disk))
-                goto error_destroy_disk;
-
         if (disk) {
                 if (!_disk_warn_busy (disk))
                         goto error_destroy_disk;
+		if (!_disk_warn_loss (disk))
+                	goto error_destroy_disk;
                 ped_disk_destroy (disk);
         }
 


Index: parted.spec
===================================================================
RCS file: /cvs/dist/rpms/parted/devel/parted.spec,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- parted.spec	4 Dec 2006 20:09:55 -0000	1.91
+++ parted.spec	15 Dec 2006 20:59:23 -0000	1.92
@@ -4,8 +4,9 @@
 Summary: The GNU disk partition manipulation program.
 Name:    parted
 Version: 1.8.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Source:  ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
+Patch0:  parted-1.8.1-blankdisk-segv.patch
 
 Buildroot: %{_tmppath}/%{name}-root
 License: GPL
@@ -34,6 +35,7 @@
 
 %prep
 %setup -q
+%patch0 -p 1 -b .blankdisk-segv
 aclocal
 autoconf
 
@@ -89,6 +91,9 @@
 %{_libdir}/*.so
 
 %changelog
+* Fri Dec 15 2006 David Cantrell <dcantrell at redhat.com> - 1.8.1-2
+- Fix a segfault when initializing new volumes (pjones)
+
 * Mon Dec 04 2006 David Cantrell <dcantrell at redhat.com> - 1.8.1-1
 - Upgrade to GNU parted-1.8.1
 




More information about the fedora-cvs-commits mailing list