From efb1c0fe57630170faf32b393a6337a19da1904b Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 2 Nov 2000 20:05:00 +0000 Subject: [PATCH] Solve the os_is_absolute_path problem for the moment. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/config.c b/server/config.c index 32131ffc01..4617a85083 100644 --- a/server/config.c +++ b/server/config.c @@ -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); -- 2.50.1