Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 5819 invoked by uid 6000); 5 Feb 1998 19:14:05 -0000 Received: (qmail 5811 invoked from network); 5 Feb 1998 19:14:02 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 5 Feb 1998 19:14:02 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with ESMTP id TAA22654 for ; Thu, 5 Feb 1998 19:12:47 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id TAA23211 for ; Thu, 5 Feb 1998 19:12:38 GMT Message-ID: <34DA0F11.CAB1F9BF@algroup.co.uk> Date: Thu, 05 Feb 1998 19:12:17 +0000 From: Ben Laurie Organization: A.L. Digital Ltd. X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: directory_walk bug? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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. Hmmm... if only I could remember which way round it was before we move the os_canonical_filename. However, I'm inclined to agree. 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