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
3b1b0373
Commit
3b1b0373
authored
Dec 19, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not put --user into command line if the value comes from [mysqld] or [server] sections
Bug #2163
parent
2cab7564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+9
-3
No files found.
scripts/mysqld_safe.sh
View file @
3b1b0373
...
...
@@ -46,8 +46,9 @@ parse_arguments() {
--user
=
*
)
if
test
$SET_USER
-eq
0
then
user
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;
SET_USER
=
1
user
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
fi
SET_USER
=
1
;;
# these two might have been set in a [mysqld_safe] section of my.cnf
...
...
@@ -129,7 +130,6 @@ fi
# these rely on $DATADIR by default, so we'll set them later on
pid_file
=
err_log
=
SET_USER
=
0
# Get first arguments from the my.cnf file, groups [mysqld] and [mysqld_safe]
# and then merge with the command line arguments
...
...
@@ -147,7 +147,13 @@ else
fi
args
=
parse_arguments
`
$print_defaults
--loose-verbose
$defaults
mysqld server mysqld_safe safe_mysqld
`
SET_USER
=
2
parse_arguments
`
$print_defaults
--loose-verbose
$defaults
mysqld server
`
if
test
$SET_USER
-eq
2
then
SET_USER
=
0
fi
parse_arguments
`
$print_defaults
--loose-verbose
$defaults
mysqld_safe safe_mysqld
`
parse_arguments PICK-ARGS-FROM-ARGV
"
$@
"
if
test
!
-x
$ledir
/
$MYSQLD
...
...
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