On Jul 29, 2006, at 7:43 AM, [EMAIL PROTECTED] wrote:
     fname = ap_server_root_relative(pool, name);
+    dir = apr_pstrdup(pool, name);
+    sep = strrchr(dir, '/');
+    if (sep != NULL) {
+        *sep++ = '\0';
+        dname = ap_server_root_relative(pool, dir);
+        apr_dir_make(dname, APR_UREAD|APR_UWRITE|APR_UEXECUTE, pool);
+    }

Hmmm... isn't this done at child_init? If so, then we've already
given up root perms for this and we can't (or shouldn't)
be able to create any subdir under serverroot.

I'd suggest looking at the SSL module which allows
for a session cache which can also be impl via
shared memory for when these things need to be
created/attached/etc... Mostly we're looking at the
post_config phase since it needs to be done before
we fork off child processes. Otherwise we're not
sharing these segment among all the child processes.

Reply via email to