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
b7f35f00
Commit
b7f35f00
authored
Sep 30, 2004
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solve compile problem for 4.0.22 on hpita2. (Backport of a 4.1 change)
parent
476705df
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 @
b7f35f00
...
...
@@ -1114,14 +1114,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
...
...
@@ -2510,9 +2510,9 @@ You should consider changing lower_case_table_names to 1 or 2",
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
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