Skip to content

Commit

Permalink
MDEV-6939 : Dots in file names of configuration files
Browse files Browse the repository at this point in the history
Use fn_ext2() to get the file extension from last occurrence
of FN_EXTCHAR ('.') instead.
  • Loading branch information
Nirbhay Choubey committed Oct 30, 2014
1 parent 822dc6f commit 3c2c036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysys/my_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
for (i= 0; i < (uint) search_dir->number_of_files; i++)
{
search_file= search_dir->dir_entry + i;
ext= fn_ext(search_file->name);
ext= fn_ext2(search_file->name);

/* check extension */
for (tmp_ext= (char**) f_extensions; *tmp_ext; tmp_ext++)
Expand Down

0 comments on commit 3c2c036

Please sign in to comment.