mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-12-07 18:51:33 +03:00
log eraser, log enumerator should refer logdir
This commit is contained in:
@ -11435,7 +11435,7 @@ void SiReadLocalLogFile(SERVER *s, char *filepath, UINT offset, RPC_READ_LOG_FIL
|
|||||||
|
|
||||||
Zero(t, sizeof(RPC_READ_LOG_FILE));
|
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);
|
Format(full_path, sizeof(full_path), "%s/%s", exe_dir, filepath);
|
||||||
|
|
||||||
// Read file
|
// Read file
|
||||||
|
|||||||
@ -419,7 +419,7 @@ ERASER *NewEraser(LOG *log, UINT64 min_size)
|
|||||||
|
|
||||||
e = ZeroMalloc(sizeof(ERASER));
|
e = ZeroMalloc(sizeof(ERASER));
|
||||||
|
|
||||||
GetExeDir(dir, sizeof(dir));
|
GetLogDir(dir, sizeof(dir));
|
||||||
|
|
||||||
e->Log = log;
|
e->Log = log;
|
||||||
e->MinFreeSpace = min_size;
|
e->MinFreeSpace = min_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user