summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-04-04 05:44:43 +0000
committerNeil Brown <neilb@suse.de>2005-04-04 05:44:43 +0000
commitb568741513da4cc6284815345473f67f7cdee1df (patch)
tree1fd6393016ab4a4207af0fc943a8e44d8a4ec0b2 /config.c
parentbaa5f1c2a09dab0f433a7b44535079fee76f0c81 (diff)
downloadmdadm-b568741513da4cc6284815345473f67f7cdee1df.tar.gz
mdadm-b568741513da4cc6284815345473f67f7cdee1df.tar.xz
mdadm-b568741513da4cc6284815345473f67f7cdee1df.zip
Fix "--config=partitions" which was broken.
"devline" wants a list of words, not a whole line... Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.c b/config.c
index f23da81..0aac1a0 100644
--- a/config.c
+++ b/config.c
@@ -421,7 +421,11 @@ void load_conffile(char *conffile)
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);
+ free_line(list);
loaded = 1;
return;
}