summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-17 03:40:40 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-17 03:40:40 +0000
commit10042d35d8c0b3a86db068760a6ad15bbd27ac06 (patch)
tree7adc4173cc64331771827dd5a9dcfa4fe668076b /sys-fs/mdadm/files
parentold (diff)
downloadhistorical-10042d35d8c0b3a86db068760a6ad15bbd27ac06.tar.gz
historical-10042d35d8c0b3a86db068760a6ad15bbd27ac06.tar.bz2
historical-10042d35d8c0b3a86db068760a6ad15bbd27ac06.zip
Fix segfault #119245 by Nathan Blomquist.
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'sys-fs/mdadm/files')
-rw-r--r--sys-fs/mdadm/files/digest-mdadm-2.2-r11
-rw-r--r--sys-fs/mdadm/files/mdadm-2.2-update-segv.patch16
2 files changed, 17 insertions, 0 deletions
diff --git a/sys-fs/mdadm/files/digest-mdadm-2.2-r1 b/sys-fs/mdadm/files/digest-mdadm-2.2-r1
new file mode 100644
index 000000000000..a6a8374d21f2
--- /dev/null
+++ b/sys-fs/mdadm/files/digest-mdadm-2.2-r1
@@ -0,0 +1 @@
+MD5 c8df672f809aa4a43a88a2516d421d6e mdadm-2.2.tar.bz2 106815
diff --git a/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch b/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch
new file mode 100644
index 000000000000..1c1e37ecf4b2
--- /dev/null
+++ b/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch
@@ -0,0 +1,16 @@
+Fix segfault when update is NULL
+
+http://bugs.gentoo.org/119245
+http://www.mail-archive.com/linux-raid@vger.kernel.org/msg03242.html
+
+--- Assemble.c
++++ Assemble.c
+@@ -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",