mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Correct usage of logdir
This commit is contained in:
parent
f2c2836301
commit
b7b4945c36
1 changed files with 4 additions and 3 deletions
|
@ -202,10 +202,11 @@ int main(int argc, char **argv)
|
|||
#ifdef __unix__
|
||||
logstream = fopen(logfilename, "w");
|
||||
#ifdef DEFAULTDIR
|
||||
link = va("%s/"DEFAULTDIR"/latest-log.txt", logdir);
|
||||
#else
|
||||
link = va("%s/latest-log.txt", logdir);
|
||||
if (logdir)
|
||||
link = va("%s/"DEFAULTDIR"/latest-log.txt", logdir);
|
||||
else
|
||||
#endif/*DEFAULTDIR*/
|
||||
link = "latest-log.txt";
|
||||
unlink(link);
|
||||
if (symlink(logfilename, link) == -1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue