MDEV-6939 : Dots in file names of configuration files

Use fn_ext2() to get the file extension from last occurrence
of FN_EXTCHAR ('.') instead. Also made some cosmetic changes
in mysys/mf_fn_ext.c.
This commit is contained in:
Nirbhay Choubey 2014-10-29 22:12:31 -04:00
parent 66085f2393
commit 4dec4e1175

View File

@ -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++)