]> granicus.if.org Git - apache/commitdiff
Solve the os_is_absolute_path problem for the moment.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 2 Nov 2000 20:05:00 +0000 (20:05 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 2 Nov 2000 20:05:00 +0000 (20:05 +0000)
  This is -not- the permanent patch for 2.0, simply a placeholder till we
  have the canonical name implemented in APR for good.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86804 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index 32131ffc015e0b82af29d7d9d629ce8cd5b19cf6..4617a85083f62513d0e3023cd424713ceab579ba 100644 (file)
@@ -1173,7 +1173,9 @@ AP_DECLARE_NONSTD(const char *) ap_set_file_slot(cmd_parms *cmd, void *struct_pt
        so the server can be moved or mirrored with less pain.  */
     char *p;
     int offset = (int) (long) cmd->info;
+#ifndef OS2
     arg = ap_os_canonical_filename(cmd->pool, arg);
+#endif
     if (ap_os_is_path_absolute(arg))
        p = apr_pstrdup(cmd->pool, arg);
     else
@@ -1192,6 +1194,9 @@ static cmd_parms default_parms =
 
 AP_DECLARE(const char *) ap_server_root_relative(apr_pool_t *p, const char *file)
 {
+#ifndef OS2
+    file = ap_os_canonical_filename(p, file);
+#endif
     if(ap_os_is_path_absolute(file))
        return file;
     return ap_make_full_path(p, ap_server_root, file);