]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_slotmem_plain: make the "filename" key relative to
authorJeff Trawick <trawick@apache.org>
Wed, 8 Aug 2012 13:45:57 +0000 (13:45 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 8 Aug 2012 13:45:57 +0000 (13:45 +0000)
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

modules/slotmem/mod_slotmem_plain.c

index 47da15b49a0b3ca2fcd3a4531c85b6d040ce0862..dc62f46f85b83d68d572672bf383152f5bb55efb 100644 (file)
@@ -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;