From: Paul Querna Date: Mon, 27 Oct 2008 00:43:45 +0000 (+0000) Subject: * modules/cache/mod_socache_dbm.c X-Git-Tag: 2.3.0~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1e0efeac8626808490ea83f7cbf20c189e8cad7;p=thirdparty%2Fapache%2Fhttpd.git * modules/cache/mod_socache_dbm.c (socache_dbm_init) Use AP_NEED_SET_MUTEX_PERMS to determine when we need to set the file permissions on the created DBM files, rather than listing a hodgepodge of operating systems by hand. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@708067 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_socache_dbm.c b/modules/cache/mod_socache_dbm.c index 9901d7ed46d..4efe4fb4420 100644 --- a/modules/cache/mod_socache_dbm.c +++ b/modules/cache/mod_socache_dbm.c @@ -121,7 +121,7 @@ static apr_status_t socache_dbm_init(ap_socache_instance_t *ctx, ctx->expiry_interval = (hints && hints->expiry_interval ? hints->expiry_interval : 30); -#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE) +#if AP_NEED_SET_MUTEX_PERMS /* * We have to make sure the Apache child processes have access to * the DBM file. But because there are brain-dead platforms where we