Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
erlang
0493-fix-handle-more-than-one-.config-with-one-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0493-fix-handle-more-than-one-.config-with-one-config-par.patch of Package erlang
From d81a04fbecd71f22d75a714c451c182fa398ad8e Mon Sep 17 00:00:00 2001 From: Pouriya Jahanbakhsh <pouriya.jahanbakhsh@gmail.com> Date: Wed, 4 Sep 2019 18:08:06 +0430 Subject: [PATCH 1/4] fix: handle more than one *.config with one -config parameter --- lib/kernel/src/application_controller.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kernel/src/application_controller.erl b/lib/kernel/src/application_controller.erl index 7715dca7c6..44de31256e 100644 --- a/lib/kernel/src/application_controller.erl +++ b/lib/kernel/src/application_controller.erl @@ -1804,7 +1804,7 @@ check_conf() -> case init:get_argument(config) of {ok, Files} -> {ok, lists:foldl( - fun([File], Env) -> + fun(File, Env) -> BFName = filename:basename(File,".config"), FName = filename:join(filename:dirname(File), BFName ++ ".config"), @@ -1836,7 +1836,7 @@ check_conf() -> {error, {Line, _Mod, Str}} -> throw({error, {FName, Line, Str}}) end - end, [], Files)}; + end, [], lists:append(Files))}; _ -> {ok, []} end. -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor