www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Oetiker <oeti...@ee.ethz.ch>
Subject mod_include/742: <!--#include virtual="/lib/hello.shtml" --> changes chdir
Date Mon, 16 Jun 1997 15:10:01 GMT

>Number:         742
>Category:       mod_include
>Synopsis:       <!--#include virtual="/lib/hello.shtml" --> changes chdir
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jun 16 08:10:01 1997
>Originator:     oetiker@ee.ethz.ch
>Organization:
apache
>Release:        1.2.0
>Environment:
SunOS engelberg 5.5.1 Generic_103640-06 sun4u sparc SUNW,Ultra-1
gcc-2.7.2.1

apache is configured with suexec
>Description:
We use <!--#include virtual="/lib/hello.shtml" --> in most of
our documents to include a footer and header line. If I do use such a
virtual include in document /~oetiker/demo.shtml (the included 
document is server parsed as well!) and subsequently try to use
<!--#exec cmd="demo.exec" --> (in /~oetiker/demo.shtm), suexec refuses to
do it, because it thinks that demo.exec is in the /lib/ directory.

this gives the following symptom in the cgi.log
[16:45:44 16-06-97]: command not in docroot (/usr/tardis/pub/www/lib/demo.exec)

if I remove the include virtual line things work fine ... also if I put the include 
virtual after the exec line or if the included file is NOT server parsed ...
>How-To-Repeat:
try the setup explained in above description
>Fix:
I did poke through mod_include.c but to no avail  ... :-(
>Audit-Trail:
>Unformatted:



Mime
View raw message