httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject directory_walk bug?
Date Tue, 03 Feb 1998 06:38:04 GMT
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...

Dean


Mime
View raw message