From 4dec4e1175b6494c6ba952fa3eac528ac9649888 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Wed, 29 Oct 2014 22:12:31 -0400 Subject: [PATCH] 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. --- mysys/my_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysys/my_default.c b/mysys/my_default.c index 8eb99d21b73..0bd76a1cff0 100644 --- a/mysys/my_default.c +++ b/mysys/my_default.c @@ -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++)