The following reply was made to PR mod_include/742; it has been noted by GNATS.

From: Marc Slemko <[EMAIL PROTECTED]>
To: Tobias Oetiker <[EMAIL PROTECTED]>
Subject: Re: mod_include/742: <!--#include virtual="/lib/hello.shtml" --> 
changes chdir
Date: Mon, 16 Jun 1997 22:40:49 -0600 (MDT)

 
 On Mon, 16 Jun 1997, Tobias Oetiker wrote:
 
 > 
 > >Number:         742
 > >Category:       mod_include
 > >Synopsis:       <!--#include virtual="/lib/hello.shtml" --> changes chdir
 
 Try the below patch.  This should fix it without suexec, however there are
 still some bogons with using suexec and mod_include that may or may not
 impact you.  If the below patch doesn't work for you with suexec, try it
 without suexec so we can be sure that it is suexec causing the problems.
 
 Index: mod_include.c
 ===================================================================
 RCS file: /export/home/cvs/apache/src/mod_include.c,v
 retrieving revision 1.34
 diff -c -r1.34 mod_include.c
 *** mod_include.c      1997/06/15 19:22:29     1.34
 --- mod_include.c      1997/06/17 04:36:28
 ***************
 *** 524,529 ****
 --- 524,530 ----
       }
       
       destroy_sub_req (rr);
 +     chdir_file(r->filename);
       
       return 0;
   }
 ***************
 *** 571,576 ****
 --- 572,578 ----
            
            if (!error_fmt && run_sub_req (rr))
                error_fmt = "unable to include %s in parsed file %s";
 +          chdir_file(r->filename);
                    
               if (error_fmt) {
                   log_printf(r->server, error_fmt, tag_val, r->filename);
 

Reply via email to