Skip to content

Commit

Permalink
MDEV-9929 MariaDB segfaults on command "mysqld --version" with ignore…
Browse files Browse the repository at this point in the history
…-db-dir option on /etc/my.cnf

don't put command-line arguments into opt_ignore_db_dirs -
it is supposed to contain a malloc()'ed accumulated
list of all ignored dirs
  • Loading branch information
vuvova committed Apr 19, 2016
1 parent 4f133fb commit 3294cd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7800,6 +7800,7 @@ mysqld_get_one_option(int optid,


case OPT_IGNORE_DB_DIRECTORY:
opt_ignore_db_dirs= NULL; // will be set in ignore_db_dirs_process_additions
if (*argument == 0)
ignore_db_dirs_reset();
else
Expand Down

0 comments on commit 3294cd1

Please sign in to comment.