dmraid/dmraid-1.0.0.rc14-ddf1_segfault.patch

16 lines
576 B
Diff

Index: 1.0.0.rc14/lib/metadata/metadata.c
===================================================================
--- 1.0.0.rc14.orig/lib/metadata/metadata.c
+++ 1.0.0.rc14/lib/metadata/metadata.c
@@ -797,6 +797,10 @@ static void want_set(struct lib_context
if (name) {
size_t len1 = strlen(rs->name), len2 = strlen(name);
+ /* FIXME: skip the DDF1 superset to get rid of segfault */
+ if (strncmp(rs->name, ".ddf1_", 6) == 0)
+ return;
+
if (len2 > len1 ||
strncmp(rs->name, name, min(len1, len2))) {
log_notice(lc, "dropping unwanted RAID set \"%s\"",