]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- fix segfault on mysql_upgrade
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 16 Dec 2006 21:22:05 +0000 (21:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-bug-16634.patch -> 1.1

mysql-bug-16634.patch [new file with mode: 0644]

diff --git a/mysql-bug-16634.patch b/mysql-bug-16634.patch
new file mode 100644 (file)
index 0000000..a4363df
--- /dev/null
@@ -0,0 +1,58 @@
+From: Daniel&nbsp;FischerDate: December 8 2006 10:23am
+Subject: bk commit into 5.0 tree (df:1.2327)
+
+Below is the list of changes that have just been committed into a local
+5.0 repository of df. When df does a push these changes will
+be propagated to the main repository and, within 24 hours after the
+push, to the public repository.
+For information on how to access the public repository
+see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
+
+ChangeSet@stripped, 2006-12-08 10:23:03+01:00, df@stripped +1 -0
+  mysql_upgrade -p fix
+
+  client/mysql_upgrade.c@stripped, 2006-12-08 10:23:01+01:00, df@stripped +11 -1
+    BUG#24896 mysql_upgrade core dumps on RHEL3 using 5.0.30 commerical binaries
+
+# This is a BitKeeper patch.  What follows are the unified diffs for the
+# set of deltas contained in the patch.  The rest of the patch, the part
+# that BitKeeper cares about, is below these diffs.
+# User:        df
+# Host:        kahlann.erinye.com
+# Root:        /home/df/mysql/build/mysql-5.0-build-24896
+
+--- 1.11/client/mysql_upgrade.c        2006-11-23 11:38:42 +01:00
++++ 1.12/client/mysql_upgrade.c        2006-12-08 10:23:01 +01:00
+@@ -142,6 +142,7 @@ void set_extra_default(int id, const str
+   case 'f':             /* --force is ours */
+   case 'u':             /* --user passed on cmdline */
+   case 'T':             /* --debug-info is not accepted by mysqlcheck */
++  case 'p':             /* --password may change yet */
+     /* so, do nothing */
+     break;
+   default:
+@@ -173,7 +174,7 @@ void set_extra_default(int id, const str
+       d->id= id;
+       d->name= opt->name;
+       d->n_len= strlen(opt->name);
+-      if (opt->arg_type != NO_ARG)
++      if (opt->arg_type != NO_ARG && opt->value)
+         switch (opt->var_type & GET_TYPE_MASK) {
+         case GET_BOOL:
+           if (*((int *)opt->value))
+@@ -319,6 +320,15 @@ static int create_defaults_file(const ch
+   }
+   
+   dynstr_set(&buf, "\n[client]");
++  if (opt_password) 
++  {
++    if (dynstr_append_mem(&buf, "\npassword=", 10)
++       || dynstr_append_mem(&buf, opt_password, strlen(opt_password)))
++    {
++      ret = 1;
++      goto error;
++    }
++  }
+   while (extra_defaults) 
+   {
+     int len;
This page took 0.035297 seconds and 4 git commands to generate.