mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
mysql_upgrade ignored the --basedir and --datadir arguments as it has no use
for them, but it did so silently. (Bug #36558)
This commit is contained in:
@@ -251,8 +251,12 @@ get_one_option(int optid, const struct my_option *opt,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'b': /* --basedir */
|
case 'b': /* --basedir */
|
||||||
case 'v': /* --verbose */
|
|
||||||
case 'd': /* --datadir */
|
case 'd': /* --datadir */
|
||||||
|
fprintf(stderr, "%s: the '--%s' option is always ignored\n",
|
||||||
|
my_progname, optid == 'b' ? "basedir" : "datadir");
|
||||||
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
|
case 'v': /* --verbose */
|
||||||
case 'f': /* --force */
|
case 'f': /* --force */
|
||||||
add_option= FALSE;
|
add_option= FALSE;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user