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
c231b747
Commit
c231b747
authored
Mar 10, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow multiple --user options to mysqld
(First one is used)
parent
11016134
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
scripts/safe_mysqld.sh
scripts/safe_mysqld.sh
+6
-2
sql/mysqld.cc
sql/mysqld.cc
+4
-1
No files found.
scripts/safe_mysqld.sh
View file @
c231b747
...
...
@@ -33,8 +33,12 @@ parse_arguments() {
--basedir
=
*
)
MY_BASEDIR_VERSION
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;;
--datadir
=
*
)
DATADIR
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;;
--pid-file
=
*
)
pid_file
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;;
--user
=
*
)
user
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;
SET_USER
=
1
;;
--user
=
*
)
if
[
$SET_USER
==
0
]
then
user
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;
SET_USER
=
1
fi
;;
# these two might have been set in a [safe_mysqld] section of my.cnf
# they get passed via environment variables to safe_mysqld
--socket
=
*
)
MYSQL_UNIX_PORT
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;;
...
...
sql/mysqld.cc
View file @
c231b747
...
...
@@ -3639,7 +3639,10 @@ static void get_options(int argc,char **argv)
use_temp_pool
=
1
;
break
;
case
'u'
:
mysqld_user
=
optarg
;
if
(
!
mysqld_user
)
mysqld_user
=
optarg
;
else
fprintf
(
stderr
,
"Warning: Ignoring user change to '%s' becasue the user is set to '%s' earlier on the command line
\n
"
,
optarg
,
mysqld_user
);
break
;
case
'v'
:
case
'V'
:
...
...
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