Commit 68871aee authored by ingo@mysql.com's avatar ingo@mysql.com

bug#4997 - --log-error sometimes generates incorrect default name.

Now replacing domain name by 'err'. If host name doesn't have a
domain name, '.err' is appended as before.
parent 83efb948
......@@ -2535,7 +2535,8 @@ server.");
if (opt_error_log)
{
if (!log_error_file_ptr[0])
fn_format(log_error_file, glob_hostname, mysql_data_home, ".err", 0);
fn_format(log_error_file, glob_hostname, mysql_data_home, ".err",
MY_REPLACE_EXT); /* replace '.<domain>' by '.err', bug#4997 */
else
fn_format(log_error_file, log_error_file_ptr, mysql_data_home, ".err",
MY_UNPACK_FILENAME | MY_SAFE_PATH);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment