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
bcbbef6f
Commit
bcbbef6f
authored
Aug 06, 2009
by
Ignacio Galarza
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge
parents
ad951044
1c07007f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
sql/mysqld.cc
sql/mysqld.cc
+15
-2
No files found.
sql/mysqld.cc
View file @
bcbbef6f
...
...
@@ -4588,15 +4588,28 @@ default_service_handling(char **argv,
const
char
*
account_name
)
{
char
path_and_service
[
FN_REFLEN
+
FN_REFLEN
+
32
],
*
pos
,
*
end
;
const
char
*
opt_delim
;
end
=
path_and_service
+
sizeof
(
path_and_service
)
-
3
;
/* We have to quote filename if it contains spaces */
pos
=
add_quoted_string
(
path_and_service
,
file_path
,
end
);
if
(
*
extra_opt
)
{
/* Add (possible quoted) option after file_path */
/*
Add option after file_path. There will be zero or one extra option. It's
assumed to be --defaults-file=file but isn't checked. The variable (not
the option name) should be quoted if it contains a string.
*/
*
pos
++=
' '
;
pos
=
add_quoted_string
(
pos
,
extra_opt
,
end
);
if
(
opt_delim
=
strchr
(
extra_opt
,
'='
))
{
size_t
length
=
++
opt_delim
-
extra_opt
;
strnmov
(
pos
,
extra_opt
,
length
);
}
else
opt_delim
=
extra_opt
;
pos
=
add_quoted_string
(
pos
,
opt_delim
,
end
);
}
/* We must have servicename last */
*
pos
++=
' '
;
...
...
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