httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: Bug on path fix....
Date Mon, 13 Jan 1997 16:26:57 GMT
Sigh.

It appears that you are correct.  This appears like it may be
somewhat OS specific.  What OS are you running?

Thanks for reporting it.  Your fix looks good if it works for you,
although it may need to be modified a little for portability.

On Mon, 13 Jan 1997, Frederico A. C. Neves wrote:

> 
> 	Dear Marc Slemko,
> 
> 	I have to make a change on your path to work for me....
> 	Please correct-me if i'm doing something wrong.
> 
> 	when you compare ....if (errno == ENOENT)... i change it for...
> 
> 	.....else if (errno == ENOENT || errno == ENOTDIR) {.....
> 
> 	if i don't do that the extra PATH_INFO that i past to my cgi's give me the error on
the next else statment because the stat function return errno = ENOTDIR /server-path/cgi-bin/mycgi/parameters...
> 
> 	following a patch for the http_request.c after your patch or for httpd-1.1.2
> 
> ---begin---
> 183c183
> <       else if (errno == ENOENT) {
> ---
> >       else if (errno == ENOENT || errno == ENOTDIR) {
> 200c200
> <           log_printf(r->server, "access to %s failed for client; unable to determine
if index file exists (stat() returned unexpected error)", r->filename);
> ---
> >           log_printf(r->server, "access to %s failed for client; unable to determine
if index file exists (stat() returned unexpected error %d)", r->filename, errno);
> --end---
> 
> 	Please report me any mistakes
> 
> 	Best Regards
> 	Frederico Neves
> 
> -- 
>  ----------------------------------------------------------------
>  Frederico A. C. Neves         ExCon Consultoria em Sistemas Ltda
>  <fneves@ExCon.com.BR>    Av.Dr.Jose Cesar de Oliveira 181 Cj.409
>  Tel/Fax +55-11-833-0660      Sao Paulo - SP - Brazil - 05317-000 
> 


Mime
View raw message