Quick changes...
This commit is contained in:
@ -283,7 +283,11 @@ void UTIL_MakeNewLogFile()
|
||||
tm *curTime = localtime(&td);
|
||||
|
||||
// create dir if not existing
|
||||
#ifdef __linux
|
||||
mkdir(build_pathname("%s", g_log_dir.str()), 0700);
|
||||
#else
|
||||
mkdir(build_pathname("%s", g_log_dir.str()));
|
||||
#endif
|
||||
|
||||
int i = 0;
|
||||
while (true)
|
||||
@ -325,4 +329,4 @@ void UTIL_Log(const char *fmt, ...)
|
||||
fprintf(pF, "L %s: %s\n", date, msg);
|
||||
fclose(pF);
|
||||
print_srvconsole("L %s: %s\n", date, msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user