From: Neil Brown Date: Wed, 8 Nov 2006 22:37:10 +0000 (+1100) Subject: Strdup the bitmap file name found in the config file X-Git-Tag: mdadm-2.5.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d87d0978e2aeaa73f219d0d0a8b4eb5c73027551;p=thirdparty%2Fmdadm.git Strdup the bitmap file name found in the config file Otherwise we quickly lose it... --- diff --git a/ChangeLog b/ChangeLog index cd7dc229..c182cad6 100644 --- 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. diff --git a/config.c b/config.c index d251fbfb..38e911ac 100644 --- 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)