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
23c2113d
Commit
23c2113d
authored
Sep 13, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/M41/mysql-4.1
parents
b39ddcf9
8f8ccc4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sql/mysqld.cc
sql/mysqld.cc
+6
-6
No files found.
sql/mysqld.cc
View file @
23c2113d
...
...
@@ -1126,14 +1126,14 @@ static void set_effective_user(struct passwd *user_info)
{
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
DBUG_ASSERT
(
user_info
);
if
(
set
egid
(
user_info
->
pw_gid
)
==
-
1
)
if
(
set
regid
((
gid_t
)
-
1
,
user_info
->
pw_gid
)
==
-
1
)
{
sql_perror
(
"setegid"
);
sql_perror
(
"set
r
egid"
);
unireg_abort
(
1
);
}
if
(
set
euid
(
user_info
->
pw_uid
)
==
-
1
)
if
(
set
reuid
((
uid_t
)
-
1
,
user_info
->
pw_uid
)
==
-
1
)
{
sql_perror
(
"seteuid"
);
sql_perror
(
"set
r
euid"
);
unireg_abort
(
1
);
}
#endif
...
...
@@ -2657,9 +2657,9 @@ server.");
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT) && !defined(EMBEDDED_LIBRARY)
if
(
locked_in_memory
&&
!
getuid
())
{
if
(
set
euid
(
0
)
==
-
1
)
if
(
set
reuid
((
uid_t
)
-
1
,
0
)
==
-
1
)
{
// this should never happen
sql_perror
(
"seteuid"
);
sql_perror
(
"set
r
euid"
);
unireg_abort
(
1
);
}
if
(
mlockall
(
MCL_CURRENT
))
...
...
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