Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e57534e6
Commit
e57534e6
authored
Mar 29, 2005
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more merge fixes
parent
7428d7ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
mysys/default.c
mysys/default.c
+4
-8
No files found.
mysys/default.c
View file @
e57534e6
...
@@ -124,7 +124,7 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
...
@@ -124,7 +124,7 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
if
(
forced_default_file
)
if
(
forced_default_file
)
{
{
if
((
error
=
search_default_file_with_ext
(
func
,
func_ctx
,
""
,
""
,
if
((
error
=
search_default_file_with_ext
(
func
,
func_ctx
,
""
,
""
,
forced_default_file
))
<
0
)
forced_default_file
,
0
))
<
0
)
goto
err
;
goto
err
;
if
(
error
>
0
)
if
(
error
>
0
)
{
{
...
@@ -439,7 +439,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
...
@@ -439,7 +439,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
int
recursion_level
)
int
recursion_level
)
{
{
char
name
[
FN_REFLEN
+
10
],
buff
[
4096
],
curr_gr
[
4096
],
*
ptr
,
*
end
,
**
tmp_ext
;
char
name
[
FN_REFLEN
+
10
],
buff
[
4096
],
curr_gr
[
4096
],
*
ptr
,
*
end
,
**
tmp_ext
;
char
*
value
,
option
[
4096
];
char
*
value
,
option
[
4096
]
,
tmp
[
FN_REFLEN
]
;
static
const
char
includedir_keyword
[]
=
"includedir"
;
static
const
char
includedir_keyword
[]
=
"includedir"
;
static
const
char
include_keyword
[]
=
"include"
;
static
const
char
include_keyword
[]
=
"include"
;
const
int
max_recursion_level
=
10
;
const
int
max_recursion_level
=
10
;
...
@@ -548,14 +548,10 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
...
@@ -548,14 +548,10 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
if
(
*
tmp_ext
)
if
(
*
tmp_ext
)
{
{
if
(
!
(
tmp
=
alloc_root
(
alloc
,
2
+
strlen
(
search_file
->
name
)
+
strlen
(
ptr
))))
goto
err
;
fn_format
(
tmp
,
search_file
->
name
,
ptr
,
""
,
fn_format
(
tmp
,
search_file
->
name
,
ptr
,
""
,
MY_UNPACK_FILENAME
|
MY_SAFE_PATH
);
MY_UNPACK_FILENAME
|
MY_SAFE_PATH
);
search_default_file_with_ext
(
args
,
alloc
,
""
,
""
,
tmp
,
grou
p
,
search_default_file_with_ext
(
opt_handler
,
handler_ctx
,
""
,
""
,
tm
p
,
recursion_level
+
1
);
recursion_level
+
1
);
}
}
}
}
...
@@ -585,7 +581,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
...
@@ -585,7 +581,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
goto
err
;
goto
err
;
}
}
search_default_file_with_ext
(
args
,
alloc
,
""
,
""
,
ptr
,
group
,
search_default_file_with_ext
(
opt_handler
,
handler_ctx
,
""
,
""
,
ptr
,
recursion_level
+
1
);
recursion_level
+
1
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment