httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: directory_walk bug?
Date Sat, 07 Feb 1998 20:33:10 GMT
Dean Gaudet wrote:
> 
> directory_walk looks like this:
> 
>     test_filename = pstrdup(r->pool, r->filename);
> 
>     if (!os_is_path_absolute(test_filename))
>     {
>         ...
>     }
> 
>     r->filename   = os_canonical_filename(r->pool, r->filename);
>     no2slash(test_filename);
>     num_dirs = count_dirs(test_filename);
> 
>     ...
> 
> I believe that there's a bug.  I think that test_filename is
> probably supposed to be a copy of the r->filename after
> the os_canonical_filename.  test_filename is what's actually
> used to do all the comparisons later on.
> 
> It's only an issue on win32 presently...

This needs fixing before 1.3b4, too.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message