summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-11-21 13:48:25 -0500
committerBrian Evans <grknight@gentoo.org>2017-11-21 14:34:14 -0500
commite8c5b876c36e2dd221aa26edd577c296fbef39f8 (patch)
tree0dd2cf3ebc6bf19ff60ed150f1b0dc6ff0f08e3b /dev-db/mysql-connector-c/files
parentsys-cluster/torque-6.0.3: fix an empty-string comparison error (diff)
downloadgentoo-e8c5b876c36e2dd221aa26edd577c296fbef39f8.tar.gz
gentoo-e8c5b876c36e2dd221aa26edd577c296fbef39f8.tar.bz2
gentoo-e8c5b876c36e2dd221aa26edd577c296fbef39f8.zip
dev-db/mysql-connector-c: Version bump and fix gcc 7 build
Closes: https://bugs.gentoo.org/638360 Package-Manager: Portage-2.3.15, Repoman-2.3.6
Diffstat (limited to 'dev-db/mysql-connector-c/files')
-rw-r--r--dev-db/mysql-connector-c/files/20028_all_mysql-5.6-gcc7.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-db/mysql-connector-c/files/20028_all_mysql-5.6-gcc7.patch b/dev-db/mysql-connector-c/files/20028_all_mysql-5.6-gcc7.patch
new file mode 100644
index 000000000000..cf8caedb7f1b
--- /dev/null
+++ b/dev-db/mysql-connector-c/files/20028_all_mysql-5.6-gcc7.patch
@@ -0,0 +1,13 @@
+diff --git a/sql-common/client_authentication.cc b/sql-common/client_authentication.cc
+index eaeb2d4..035ecd2 100644
+--- a/sql-common/client_authentication.cc
++++ b/sql-common/client_authentication.cc
+@@ -84,7 +84,7 @@ RSA *rsa_init(MYSQL *mysql)
+
+ if (mysql->options.extension != NULL &&
+ mysql->options.extension->server_public_key_path != NULL &&
+- mysql->options.extension->server_public_key_path != '\0')
++ mysql->options.extension->server_public_key_path[0] != '\0')
+ {
+ pub_key_file= fopen(mysql->options.extension->server_public_key_path,
+ "r");