summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-02-24 12:53:43 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-02-24 12:53:43 +0000
commitfbf94610e3d09c67d53f10d6129a1734577594f0 (patch)
tree50cd79716be70cb2805bb543aecb1b2047deae47 /src
parent19bd34400716e57f79301f02b4ec7097ecfbfabb (diff)
downloadrabbitmq-server-git-fbf94610e3d09c67d53f10d6129a1734577594f0.tar.gz
fix hidden bug in config file listing
see docs for init:get_argument/1 - a single "-config <file>" argument comes back as [[<file>]], multiple come back as [[<file>], ...]. The reason the previous code worked is that the functions in 'filename' accept deep lists. NB: we are not handling the case of "-config <file> <file> ...", but then neither does the application_controller, and th docs for 'erl' only mention a single file.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index a94af4ec35..dd5fb89ce4 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -714,6 +714,6 @@ config_files() ->
case init:get_argument(config) of
{ok, Files} -> [filename:absname(
filename:rootname(File, ".config") ++ ".config") ||
- File <- Files];
+ [File] <- Files];
error -> []
end.