mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Use on Unix hostname.err only when --log-error=path.
Asked by Heikki and Peter.
This commit is contained in:
parent
9199252c22
commit
ce37b7aac4
1 changed files with 2 additions and 0 deletions
|
@ -2214,6 +2214,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
if (log_error_file_ptr != log_error_file)
|
||||
strmake(log_error_file, log_error_file_ptr, sizeof(log_error_file));
|
||||
#ifdef __WIN__
|
||||
else
|
||||
{
|
||||
char *end;
|
||||
|
@ -2224,6 +2225,7 @@ int main(int argc, char **argv)
|
|||
*strxnmov(end, sizeof(log_error_file)-length-1,
|
||||
glob_hostname, ".err", NullS)= 0;
|
||||
}
|
||||
#endif
|
||||
if (log_error_file[0] != 0)
|
||||
if (freopen(log_error_file, "a+", stdout))
|
||||
freopen(log_error_file, "a+", stderr);
|
||||
|
|
Loading…
Reference in a new issue