From: Date: December 8 2006 10:23am Subject: bk commit into 5.0 tree (df:1.2327) List-Archive: http://lists.mysql.com/commits/16634 Message-Id: <200612080923.kB89N8Gl026009@mail.mysql.com> 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;