httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: [PATCH] DefaultRuntimeDir, ap_runtime_dir_relative()
Date Wed, 07 Mar 2012 12:17:24 GMT
On Wed, Mar 7, 2012 at 7:15 AM, Jeff Trawick <trawick@gmail.com> wrote:
> barely tested
>

seems to DTRT with this change to a test module, but more variations
of ServerRoot/DefaultRuntimeDir need to be tried; I expect that
ServerRoot must be set prior to DefaultRuntimeDir if declaring a path
relative to ServerRoot

 static const char *set_flag(cmd_parms *cmd, void *dummy,
                             int arg)
 {
+    fprintf(stderr, "my relative run-time file: >%s<\n",
+            ap_runtime_dir_relative(cmd->pool, "mod_test"));
+    fprintf(stderr, "my absolute run-time file: >%s<\n",
+            ap_runtime_dir_relative(cmd->pool, "/tmp/mod_test"));
     return NULL;
 }

Mime
View raw message