Commit f4d12c1d authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-11676 Starting service with mysqld_safe_helper fails in SELINUX "enforcing" mode

correct the error message in case of setuid/setgid failures
parent e5d7fc96
......@@ -74,7 +74,8 @@ int my_set_user(const char *user, struct passwd *user_info, myf MyFlags)
{
my_errno= errno;
if (MyFlags & MY_WME)
my_error(my_errno, MYF(ME_NOREFRESH));
my_printf_error(errno, "Cannot change uid/gid (errno: %d)", MYF(ME_NOREFRESH),
errno);
DBUG_RETURN(my_errno);
}
DBUG_RETURN(0);
......
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