1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

correct the error message in case of setuid/setgid failures
This commit is contained in:
Sergei Golubchik
2017-01-04 13:36:55 +01:00
parent e5d7fc967e
commit f4d12c1d3f

View File

@@ -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);