SOURCES: mdadm-typos.patch (NEW) - fix typo causing segfaults

arekm arekm at pld-linux.org
Thu Jan 5 20:38:39 CET 2006


Author: arekm                        Date: Thu Jan  5 19:38:39 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix typo causing segfaults

---- Files affected:
SOURCES:
   mdadm-typos.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mdadm-typos.patch
diff -u /dev/null SOURCES/mdadm-typos.patch:1.1
--- /dev/null	Thu Jan  5 20:38:39 2006
+++ SOURCES/mdadm-typos.patch	Thu Jan  5 20:38:34 2006
@@ -0,0 +1,12 @@
+diff -ur mdadm-2.2.org/Assemble.c mdadm-2.2/Assemble.c
+--- mdadm-2.2.org/Assemble.c	2005-12-05 06:56:20.000000000 +0100
++++ mdadm-2.2/Assemble.c	2006-01-05 20:36:50.030283750 +0100
+@@ -219,7 +219,7 @@
+ 		}
+ 		if (dfd >= 0) close(dfd);
+ 
+-		if (ident->uuid_set && (!update && strcmp(update, "uuid")!= 0) &&
++		if (ident->uuid_set && (update && strcmp(update, "uuid")!= 0) &&
+ 		    (!super || same_uuid(info.uuid, ident->uuid, tst->ss->swapuuid)==0)) {
+ 			if ((inargv && verbose >= 0) || verbose > 0)
+ 				fprintf(stderr, Name ": %s has wrong uuid.\n",
================================================================


More information about the pld-cvs-commit mailing list