From abc2f3fa9739c8c59012290fa181ad46acb8f93b Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 23 May 2002 14:56:11 +0000 Subject: [PATCH] Fix a file permissions problem which prevented mod_disk_cache from working on Unix. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95246 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/experimental/mod_disk_cache.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 62e1aedae4..c08540f1bd 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.37 + *) Fix a file permissions problem which prevented mod_disk_cache + from working on Unix. [Jeff Trawick] + *) Add "-k start|startssl|restart|graceful|stop" support to httpd for the Unix MPMs. These have semantics very similar to the old apachectl commands of the same name. diff --git a/modules/experimental/mod_disk_cache.c b/modules/experimental/mod_disk_cache.c index 650978a8e2..bd4a4f855a 100644 --- a/modules/experimental/mod_disk_cache.c +++ b/modules/experimental/mod_disk_cache.c @@ -548,7 +548,7 @@ static apr_status_t write_headers(cache_handle_t *h, request_rec *r, cache_info rv = apr_file_open(&dobj->hfd, dobj->hdrsfile, APR_WRITE | APR_CREATE | APR_EXCL, - 0, r->pool); + APR_OS_DEFAULT, r->pool); if (rv != APR_SUCCESS) { return rv; } -- 2.40.0