]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Strdup the bitmap file name found in the config file
authorNeil Brown <neilb@suse.de>
Wed, 8 Nov 2006 22:37:10 +0000 (09:37 +1100)
committerNeil Brown <neilb@suse.de>
Wed, 8 Nov 2006 22:37:10 +0000 (09:37 +1100)
Otherwise we quickly lose it...

ChangeLog
config.c

index cd7dc229d5d9338fd6c418039d32d52ea5e17955..c182cad61ebdeaf7977047f5bfdea385e6601fdd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Changes Prior to 2.5.6 release
+    -   Fix bug which meant "bitmap=xxx" in mdadm.conf was not handled
+       properly.
+
 Changes Prior to 2.5.5 release
     -   Don't #include linux/blkpg.h as that isn't safe.  Just
        include the content literally.
index d251fbfb58aae71fe8ad215fdc344f3a107583b8..38e911acdd218db6dc3182f3926baabb94214d8c 100644 (file)
--- a/config.c
+++ b/config.c
@@ -464,7 +464,7 @@ void arrayline(char *line)
                                fprintf(stderr, Name ": only specify bitmap file once. %s ignored\n",
                                        w);
                        else
-                               mis.bitmap_file = w+7;
+                               mis.bitmap_file = strdup(w+7);
 
                } else if (strncasecmp(w, "devices=", 8 ) == 0 ) {
                        if (mis.devices)