From 3b49f80aba520fa6ff8ab5952ed0ee348ba32c3d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Sep 2005 09:54:53 +0200 Subject: export forced_defaults_file using global variable defaults_file analog with defaults_extra_file and defaults_grouop_suffix include/my_sys.h: export forced_defaults_file using global variable defaults_file mysys/default.c: export forced_defaults_file using global variable defaults_file --- mysys/default.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mysys') diff --git a/mysys/default.c b/mysys/default.c index bca3ec0fed3..9f47b09a4b0 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -42,6 +42,7 @@ #include #endif +const char *defaults_file=0; const char *defaults_group_suffix=0; char *defaults_extra_file=0; @@ -140,6 +141,9 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv, if (forced_extra_defaults) defaults_extra_file= forced_extra_defaults; + if (forced_default_file) + defaults_file= forced_default_file; + /* We can only handle 'defaults-group-suffix' if we are called from load_defaults() as otherwise we can't know the type of 'func_ctx' -- cgit v1.2.1