mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 19:39:53 +03:00
log eraser, log enumerator should refer logdir
This commit is contained in:
parent
c64674479d
commit
a69c4980d5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user