--- Stas Bekman <[EMAIL PROTECTED]> wrote:
> ... I won't commit it yet, but you can override it in your
startup.pl,
> until the dust settles down:
> 
> require Apache::compat;
> sub Apache::RequestRec::chdir_file {
>      my $dir = @_ == 2 ? $_[1] : $_[0]->filename;
>      chdir $dir;
> }

Thanks Stas. However, this seems to set the working directory to the
server root, not the cgi-bin directory where the script resides. For
example, my printenv script now displays:

...
SCRIPT_FILENAME="/dir1/dir2/httpd/cgi-bin/printenv"
SCRIPT_NAME="/cgi-bin/printenv"
...
Working directory is /dir1/dir2/httpd
total 54

drwxrwxr-x  15 sxi_user other        512 Nov 28  2001 .
drwxrwxr-x   4 sxi_user sxi          512 Jul 29 10:58 ..
drwxrwxr-x   2 sxi_user sxi          512 Jul 18 15:57 bin
drwxrwxr-x   2 sxi_user sxi          512 Jul 18 15:57 build
drwxrwxr-x   9 sxi_user sxi         1024 Jul 29 11:38 cgi-bin
drwxrwxr-x   2 sxi_user sxi          512 Aug 16  2000 conf
...



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Reply via email to