From 8db8dbeefde8ef95f517cea5204d5c08eeb248d3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 15 Mar 2014 14:36:55 -0700 Subject: [PATCH] fix usage of access() those were the wrong constants. --- src/util/log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)