diff options
Diffstat (limited to 'debian/patches/mysql-test__db_test.patch')
-rw-r--r-- | debian/patches/mysql-test__db_test.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/mysql-test__db_test.patch b/debian/patches/mysql-test__db_test.patch new file mode 100644 index 0000000..9519429 --- /dev/null +++ b/debian/patches/mysql-test__db_test.patch @@ -0,0 +1,30 @@ +From: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org> +Date: Thu, 10 Aug 2017 20:40:28 +0200 +Subject: mysql-test__db_test + +## 50_mysql-test__db_test.dpatch by Christian Hammers <ch@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch 33_scripts__mysql_create_system_tables__no_test removes the +## DP: rights for anybody to connect to the test database but the test +## DP: suite depends on them. +--- + mysql-test/mysql-test-run.pl | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl +index 2cd5d2a..8049d45 100755 +--- a/mysql-test/mysql-test-run.pl ++++ b/mysql-test/mysql-test-run.pl +@@ -3199,6 +3199,11 @@ sub mysql_install_db { + mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql", + $bootstrap_sql_file); + ++ mtr_tofile($bootstrap_sql_file, "-- Debian removed the default privileges on the 'test' database\n"); ++ mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n"); ++ mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test\\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n"); ++ ++ + # Add test data for timezone - this is just a subset, on a real + # system these tables will be populated either by mysql_tzinfo_to_sql + # or by downloading the timezone table package from our website |