You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/01/13 17:26:57 UTC

Re: Bug on path fix....

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
>  <fn...@ExCon.com.BR>    Av.Dr.Jose Cesar de Oliveira 181 Cj.409
>  Tel/Fax +55-11-833-0660      Sao Paulo - SP - Brazil - 05317-000 
>