summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/cache/mod_file_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c
index d2c0ee92d3..11b7c3dc1a 100644
--- a/modules/cache/mod_file_cache.c
+++ b/modules/cache/mod_file_cache.c
@@ -296,7 +296,7 @@ static const char *mmapfile(cmd_parms *cmd, void *dummy, const char *filename)
filename);
return NULL;
}
- if ((rc = apr_mmap_create(&tmp.mm, fd, 0, tmp.finfo.size, cmd->pool)) != APR_SUCCESS) {
+ if ((rc = apr_mmap_create(&tmp.mm, fd, 0, tmp.finfo.size, APR_MMAP_READ, cmd->pool)) != APR_SUCCESS) {
apr_close(fd);
ap_log_error(APLOG_MARK, APLOG_WARNING, rc, cmd->server,
"mod_file_cache: unable to mmap %s, skipping", filename);