httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject [PATCH] Core dump when DocumentRoot is a CGI
Date Sat, 08 Feb 1997 16:00:08 GMT
>   * CGI script as documentroot works in 1.1.1, not 1.2b6 [geddis@tesserae.com]
>     Message-ID: <Pine.BSF.3.91.970203113114.925A-100000@localhost.imdb.com>

This patch fixes the important half of the bug:

Index: util_script.c
===================================================================
RCS file: /export/home/cvs/apache/src/util_script.c,v
retrieving revision 1.42
diff -c -r1.42 util_script.c
*** util_script.c       1997/02/07 01:27:07     1.42
--- util_script.c       1997/02/08 17:09:40
***************
*** 223,228 ****
--- 223,231 ----

      while (lu-- && lp-- && uri[lu] == path_info[lp]);

+     if(lu == -1)
+       lu=0;
+
      while (uri[lu] != '\0' && uri[lu] != '/')
        lu++;

I have no opinion about the other half - I suspect that fixing it is rather
more effort than we care to expend (it is a warning that the DocumentRoot does
not exist).

Cheers,

Ben.

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message