diff options
author | Neil Brown <neilb@suse.de> | 2006-11-09 09:37:10 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-11-09 09:37:10 +1100 |
commit | d87d0978e2aeaa73f219d0d0a8b4eb5c73027551 (patch) | |
tree | efab61e21d348386effb07c5a58996579d22bd68 | |
parent | 209b742f4d530706811463354c29265de2023c01 (diff) | |
download | mdadm-d87d0978e2aeaa73f219d0d0a8b4eb5c73027551.tar.gz mdadm-d87d0978e2aeaa73f219d0d0a8b4eb5c73027551.tar.xz mdadm-d87d0978e2aeaa73f219d0d0a8b4eb5c73027551.zip |
Strdup the bitmap file name found in the config file
Otherwise we quickly lose it...
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | config.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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. @@ -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) |