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
1617f24a
Commit
1617f24a
authored
Mar 15, 2002
by
monty@tik.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do chroot() after changing user.
parent
dcbe2415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
sql/mysqld.cc
sql/mysqld.cc
+5
-2
No files found.
sql/mysqld.cc
View file @
1617f24a
...
...
@@ -977,11 +977,14 @@ static void server_init(void)
}
}
/*
We have to first call set_user(), then set_root(), to get things to work
with glibc
*/
set_user
(
mysqld_user
);
// Works also with mysqld_user==NULL
if
(
mysqld_chroot
)
set_root
(
mysqld_chroot
);
set_user
(
mysqld_user
);
// set_user now takes care of mysqld_user==NULL
#ifdef __NT__
/* create named pipe */
if
(
Service
.
IsNT
()
&&
mysql_unix_port
[
0
]
&&
!
opt_bootstrap
)
...
...
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