From c7431f4c262182e980911ed6acb5de05ec9698fa Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 13 Sep 2004 21:49:41 +0500 Subject: [PATCH] Additional fix about paths sql/sql_class.cc: we need to check exchange->file_name here --- sql/sql_class.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 69a543d9863..844903f0edc 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -891,7 +891,7 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange, option|= MY_REPLACE_DIR; // Force use of db directory #endif - if (!dirname_length(path)) + if (!dirname_length(exchange->file_name)) { strxnmov(path, FN_REFLEN, mysql_real_data_home, thd->db ? thd->db : "", NullS); (void) fn_format(path, exchange->file_name, path, "", option);