1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 10:39:53 +03:00

log eraser, log enumerator should refer logdir

This commit is contained in:
Koichiro IWAO 2019-09-11 15:36:18 +09:00
parent c64674479d
commit a69c4980d5
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB
2 changed files with 2 additions and 2 deletions

View File

@ -11435,7 +11435,7 @@ void SiReadLocalLogFile(SERVER *s, char *filepath, UINT offset, RPC_READ_LOG_FIL
Zero(t, sizeof(RPC_READ_LOG_FILE));
GetExeDir(exe_dir, sizeof(exe_dir));
GetLogDir(exe_dir, sizeof(exe_dir));
Format(full_path, sizeof(full_path), "%s/%s", exe_dir, filepath);
// Read file

View File

@ -419,7 +419,7 @@ ERASER *NewEraser(LOG *log, UINT64 min_size)
e = ZeroMalloc(sizeof(ERASER));
GetExeDir(dir, sizeof(dir));
GetLogDir(dir, sizeof(dir));
e->Log = log;
e->MinFreeSpace = min_size;