From: Jeff Trawick Date: Wed, 8 Aug 2012 13:45:57 +0000 (+0000) Subject: mod_slotmem_plain: make the "filename" key relative to X-Git-Tag: 2.5.0-alpha~6463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f375bea5b1c176cdde089c8afb0c6c3fa244a712;p=thirdparty%2Fapache%2Fhttpd.git mod_slotmem_plain: make the "filename" key relative to DefaultRuntimeDir if not absolute mod_slotmem_plain does not externalize or check the full path in any way, so this change is just for consistency with other modules which build paths to run-time artifacts. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370763 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/slotmem/mod_slotmem_plain.c b/modules/slotmem/mod_slotmem_plain.c index 47da15b49a0..dc62f46f85b 100644 --- a/modules/slotmem/mod_slotmem_plain.c +++ b/modules/slotmem/mod_slotmem_plain.c @@ -75,7 +75,7 @@ static apr_status_t slotmem_create(ap_slotmem_instance_t **new, const char *name if (name[0] == ':') fname = name; else - fname = ap_server_root_relative(pool, name); + fname = ap_runtime_dir_relative(pool, name); /* first try to attach to existing slotmem */ if (next) { @@ -126,7 +126,7 @@ static apr_status_t slotmem_attach(ap_slotmem_instance_t **new, const char *name if (name[0] == ':') fname = name; else - fname = ap_server_root_relative(pool, name); + fname = ap_runtime_dir_relative(pool, name); } else return APR_ENOSHMAVAIL;