From a69c4980d55f91a7094342bffdc28f9bbdf70787 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Wed, 11 Sep 2019 15:36:18 +0900 Subject: [PATCH] log eraser, log enumerator should refer logdir --- src/Cedar/Admin.c | 2 +- src/Cedar/Logging.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cedar/Admin.c b/src/Cedar/Admin.c index c9714de5..8e88ed3c 100644 --- a/src/Cedar/Admin.c +++ b/src/Cedar/Admin.c @@ -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 diff --git a/src/Cedar/Logging.c b/src/Cedar/Logging.c index 1df57ce4..1ab8964c 100644 --- a/src/Cedar/Logging.c +++ b/src/Cedar/Logging.c @@ -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;