diff --git a/src/util/log.c b/src/util/log.c index cf01698c7..fe6af23e0 100644 --- a/src/util/log.c +++ b/src/util/log.c @@ -75,17 +75,17 @@ cp_convert(const char *format, char *buffer, size_t length, int codepage) void log_rotate(const char *filename, int maxindex) { int n; - if (_access(filename, _A_RDONLY)==0) { + if (_access(filename, 4)==0) { char buffer[2][MAX_PATH]; int src = 1; assert(strlen(filename)