mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-4941 make: AIX fails with 'Identifier not allowed in cast'; syntax error in include/my_global.h
C++ comments in C files, and a typo in my_global.h
This commit is contained in:
@ -52,11 +52,11 @@ static int qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *inf
|
||||
if (info->auth_string_length != 14)
|
||||
err= CR_ERROR;
|
||||
/* To be set by the plugin */
|
||||
// if (strcmp(info->authenticated_as, "qa_test_1_user"))
|
||||
// err= CR_ERROR;
|
||||
/* if (strcmp(info->authenticated_as, "qa_test_1_user")) */
|
||||
/* err= CR_ERROR; */
|
||||
/* To be set by the plugin */
|
||||
// if (strcmp(info->external_user, ""))
|
||||
// err= CR_ERROR;
|
||||
/* if (strcmp(info->external_user, "")) */
|
||||
/* err= CR_ERROR; */
|
||||
if (info->password_used != PASSWORD_USED_YES)
|
||||
err= CR_ERROR;
|
||||
if (strcmp(info->host_or_ip, "localhost"))
|
||||
@ -78,8 +78,8 @@ static int qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *inf
|
||||
/* Assign with an external account, effect on @@local.EXTERNAL_USER */
|
||||
strcpy(info->external_user, "externaluser");
|
||||
/* Overwriting will cause a core dump */
|
||||
// strcpy(info->host_or_ip, "host_or_ip");
|
||||
// info->host_or_ip_length= 10;
|
||||
/* strcpy(info->host_or_ip, "host_or_ip"); */
|
||||
/* info->host_or_ip_length= 10; */
|
||||
}
|
||||
/* Invalid, means too high values for length */
|
||||
else if (strcmp(info->user_name, "qa_test_3_user")== 0)
|
||||
@ -117,8 +117,8 @@ static int qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *inf
|
||||
/* This assignment has no effect.*/
|
||||
strcpy(info->external_user, "");
|
||||
/* Overwriting will cause a core dump */
|
||||
// strcpy(info->host_or_ip, "");
|
||||
// info->host_or_ip_length= 0;
|
||||
/* strcpy(info->host_or_ip, ""); */
|
||||
/* info->host_or_ip_length= 0; */
|
||||
}
|
||||
/* Set to 'root' */
|
||||
else if (strcmp(info->user_name, "qa_test_6_user")== 0)
|
||||
|
Reference in New Issue
Block a user