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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5f28ad75
Commit
5f28ad75
authored
Feb 07, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.0-7856
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
9220ef26
d1a2db17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
21 deletions
+16
-21
sql/mysqld.cc
sql/mysqld.cc
+16
-21
No files found.
sql/mysqld.cc
View file @
5f28ad75
...
@@ -3376,37 +3376,32 @@ int main(int argc, char **argv)
...
@@ -3376,37 +3376,32 @@ int main(int argc, char **argv)
return
0
;
return
0
;
}
}
}
}
else
if
(
argc
>=
4
)
else
if
(
argc
==
4
||
argc
==
5
)
{
{
const
char
*
defaults_file
=
"--defaults-file"
;
/*
const
char
*
service
=
"--local-service"
;
This may seem strange, because we handle --local-service while
char
extra_opt
[
FN_REFLEN
]
=
""
;
preserving 4.1's behavior of allowing any one other argument that is
passed to the service on startup. (The assumption is that this is
--defaults-file=file, but that was not enforced in 4.1, so we don't
enforce it here.)
*/
char
*
extra_opt
=
NULL
;
char
*
account_name
=
NULL
;
char
*
account_name
=
NULL
;
char
*
option
;
int
index
;
int
index
;
for
(
index
=
3
;
index
<
argc
;
index
++
)
for
(
index
=
3
;
index
<
argc
;
index
++
)
{
{
option
=
argv
[
index
];
if
(
strncmp
(
argv
[
index
],
"--local-service"
,
15
)
==
0
)
/*
Install an optional service with optional config file
mysqld --install-manual mysqldopt --defaults-file=c:\miguel\my.ini
*/
if
(
strncmp
(
option
,
defaults_file
,
strlen
(
defaults_file
))
==
0
)
{
{
strmov
(
extra_opt
,
option
);
account_name
=
(
char
*
)
malloc
(
27
);
strmov
(
account_name
,
"NT AUTHORITY
\\
LocalService
\0
"
);
}
}
else
else
/*
Install an optional service as local service
mysqld --install-manual mysqldopt --local-service
*/
if
(
strncmp
(
option
,
service
,
strlen
(
service
))
==
0
)
{
{
account_name
=
(
char
*
)
malloc
(
27
);
extra_opt
=
argv
[
index
];
strmov
(
account_name
,
"NT AUTHORITY
\\
LocalService
\0
"
);
}
}
}
}
if
(
argc
!=
5
||
account_name
)
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
extra_opt
,
account_name
))
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
extra_opt
,
account_name
))
return
0
;
return
0
;
}
}
...
...
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