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
563c5566
Commit
563c5566
authored
Sep 13, 2004
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 'sete_id(__)' calls by 'setre_id(-1,__)' to solve the
missing prototyped problem (bug#5521).
parent
3b7378f9
Changes
1
Hide 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 @
563c5566
...
@@ -1126,14 +1126,14 @@ static void set_effective_user(struct passwd *user_info)
...
@@ -1126,14 +1126,14 @@ static void set_effective_user(struct passwd *user_info)
{
{
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
DBUG_ASSERT
(
user_info
);
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
);
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
);
unireg_abort
(
1
);
}
}
#endif
#endif
...
@@ -2657,9 +2657,9 @@ server.");
...
@@ -2657,9 +2657,9 @@ server.");
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT) && !defined(EMBEDDED_LIBRARY)
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT) && !defined(EMBEDDED_LIBRARY)
if
(
locked_in_memory
&&
!
getuid
())
if
(
locked_in_memory
&&
!
getuid
())
{
{
if
(
set
euid
(
0
)
==
-
1
)
if
(
set
reuid
((
uid_t
)
-
1
,
0
)
==
-
1
)
{
// this should never happen
{
// this should never happen
sql_perror
(
"seteuid"
);
sql_perror
(
"set
r
euid"
);
unireg_abort
(
1
);
unireg_abort
(
1
);
}
}
if
(
mlockall
(
MCL_CURRENT
))
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