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
a86c80e4
Commit
a86c80e4
authored
Jun 05, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into ua126d19.elisa.omakaista.fi:/home/my/bk/mysql-4.0
parents
d3d86c12
35cd3cba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
sql/mysqld.cc
sql/mysqld.cc
+11
-4
No files found.
sql/mysqld.cc
View file @
a86c80e4
...
@@ -1014,13 +1014,20 @@ static void set_user(const char *user)
...
@@ -1014,13 +1014,20 @@ static void set_user(const char *user)
{
{
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
struct
passwd
*
ent
;
struct
passwd
*
ent
;
uid_t
user_id
=
geteuid
();
// don't bother if we aren't superuser
// don't bother if we aren't superuser
if
(
geteuid
()
)
if
(
user_id
)
{
{
if
(
user
)
if
(
user
)
{
/* Don't give a warning, if real user is same as given with --user */
struct
passwd
*
user_info
=
getpwnam
(
user
);
if
(
!
user_info
||
user_id
!=
user_info
->
pw_uid
)
fprintf
(
stderr
,
fprintf
(
stderr
,
"Warning: One can only use the --user switch if running as root
\n
"
);
"Warning: One can only use the --user switch if running as root
\n
"
);
}
return
;
return
;
}
}
else
if
(
!
user
)
else
if
(
!
user
)
...
...
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