diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-09 02:47:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-09 02:47:15 +0000 |
commit | 0929fa9c448ec84cecc4ead8cfb884cb7b70bc1e (patch) | |
tree | e548f36bf179d72d1d36f2f45d2ec4222bb9336b /sys-fs | |
parent | Stable on amd64 and x86. (diff) | |
download | gentoo-2-0929fa9c448ec84cecc4ead8cfb884cb7b70bc1e.tar.gz gentoo-2-0929fa9c448ec84cecc4ead8cfb884cb7b70bc1e.tar.bz2 gentoo-2-0929fa9c448ec84cecc4ead8cfb884cb7b70bc1e.zip |
fix segv properly
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mdadm/files/mdadm-2.2-update-segv.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch b/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch index 1c1e37ecf4b2..2f425c358d78 100644 --- a/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch +++ b/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch @@ -1,7 +1,7 @@ Fix segfault when update is NULL http://bugs.gentoo.org/119245 -http://www.mail-archive.com/linux-raid@vger.kernel.org/msg03242.html +http://www.mail-archive.com/linux-raid@vger.kernel.org/msg03639.html --- Assemble.c +++ Assemble.c @@ -10,7 +10,7 @@ http://www.mail-archive.com/linux-raid@vger.kernel.org/msg03242.html if (dfd >= 0) close(dfd); - if (ident->uuid_set && (!update && strcmp(update, "uuid")!= 0) && -+ 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", |