log_manager.cc: if the file exists, is a symbolic link and is not writable, the log manager does not fail but unlinks it and creates a new one.
This commit is contained in:
Markus Makela 2014-10-06 15:13:18 +03:00
parent 54b6271c55
commit 194ebcb054

View File

@ -2169,8 +2169,7 @@ static bool logfile_init(
if (!writable ||
!file_is_symlink(logfile->lf_full_link_name))
{
nameconflicts = true;
goto file_create_fail;
unlink(logfile->lf_full_link_name);
}
}
}