Package: mdadm
Version: 1.9.0-4.1

mdadm --examine --scan -c partitions (and other -c partitions -related
commands) crashes with a segmentation fault. The devline-function
assumes its input is a linked list posing as a string, instead of an
actual string.

Patch to fix this:

--- mdadm-1.9.0/config.c        2005-08-07 14:09:32.000000000 +0300
+++ mdadm-1.9.0-flux/config.c   2005-08-07 14:18:46.000000000 +0300
@@ -441,7 +441,11 @@
                return;
        }
        if (strcmp(conffile, "partitions")==0) {
-               devline("DEV partitions");
+               char* list = dl_strdup("DEV");
+               dl_init(list);
+               dl_add(list, dl_strdup("partitions"));
+               devline(list);
+               dl_free(list);
                loaded = 1;
                return;
        }
----

-- 
  _____________________________________________________________________
     / __// /__ ____  __               http://www.modeemi.fi/~flux/\   \
    / /_ / // // /\ \/ /                                            \  /
   /_/  /_/ \___/ /_/[EMAIL PROTECTED]                                  \/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to