Commit b509821d authored by unknown's avatar unknown

Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0

parents 22615b1a 7070f6ef
...@@ -977,11 +977,14 @@ static void server_init(void) ...@@ -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) if (mysqld_chroot)
set_root(mysqld_chroot); set_root(mysqld_chroot);
set_user(mysqld_user); // set_user now takes care of mysqld_user==NULL
#ifdef __NT__ #ifdef __NT__
/* create named pipe */ /* create named pipe */
if (Service.IsNT() && mysql_unix_port[0] && !opt_bootstrap) if (Service.IsNT() && mysql_unix_port[0] && !opt_bootstrap)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment