summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-04-04 07:44:43 +0200
committerNeil Brown <neilb@suse.de>2005-04-04 07:44:43 +0200
commitb568741513da4cc6284815345473f67f7cdee1df (patch)
tree1fd6393016ab4a4207af0fc943a8e44d8a4ec0b2 /config.c
parentAdd ANNOUNCE-1.8.1 (diff)
downloadmdadm-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 f23da816..0aac1a0b 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;
}