httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: cvs commit: apache-1.3/src/main http_main.c
Date Mon, 12 Feb 2001 06:57:40 GMT
> wrowe       01/02/11 22:45:17
> 
>     *) Win32/Netware: correct relative paths and eliminate trailing slash
>        in the -d serverroot argument.

This didn't touch unix, which could use the same patch, as well as this very general patch
which I will leave to some other interested, unnamed party to apply as you see fit:

Index: main/http_core.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.293
diff -u -r1.293 http_core.c
--- main/http_core.c 2001/01/15 17:04:57 1.293
+++ main/http_core.c 2001/02/12 06:56:25
@@ -2081,6 +2081,9 @@
     }
     ap_cpystrn(ap_server_root, arg,
         sizeof(ap_server_root));
+    /* ServerRoot is never '/' terminated */
+    if (ap_server_root[strlen(ap_server_root)-1] == '/')
+        ap_server_root[strlen(ap_server_root)-1] = '\0';
     return NULL;
 }
 



Mime
View raw message