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;