Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 55273 invoked from network); 15 Aug 2008 22:13:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Aug 2008 22:13:09 -0000 Received: (qmail 65524 invoked by uid 500); 15 Aug 2008 22:13:08 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 65468 invoked by uid 500); 15 Aug 2008 22:13:07 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 65459 invoked by uid 99); 15 Aug 2008 22:13:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2008 15:13:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2008 22:12:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4C0362388888; Fri, 15 Aug 2008 15:12:48 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r686395 - in /httpd/httpd/branches/2.2.x: ./ CHANGES docs/ modules/dav/fs/repos.c support/ab.c support/suexec.c Date: Fri, 15 Aug 2008 22:12:47 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080815221248.4C0362388888@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jim Date: Fri Aug 15 15:12:47 2008 New Revision: 686395 URL: http://svn.apache.org/viewvc?rev=686395&view=rev Log: Merge r683626, r685112 from trunk: mod_dav_fs: Retrieve minimal system information about directory entries when walking a DAV fs, resolving a performance degradation on Windows. PR: 45464 * modules/dav/fs/repos.c (DAV_FINFO_MASK): Define macro. (dav_fs_walker): Use DAV_FINFO_MASK when stat'ing the directory member during the walk. Reviewed by: jim Modified: httpd/httpd/branches/2.2.x/ (props changed) httpd/httpd/branches/2.2.x/CHANGES httpd/httpd/branches/2.2.x/docs/ (props changed) httpd/httpd/branches/2.2.x/modules/dav/fs/repos.c httpd/httpd/branches/2.2.x/support/ab.c (props changed) httpd/httpd/branches/2.2.x/support/suexec.c (props changed) Propchange: httpd/httpd/branches/2.2.x/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Fri Aug 15 15:12:47 2008 @@ -1 +1 @@ -/httpd/httpd/trunk:678761,682369 +/httpd/httpd/trunk:678761,682369,683626,685112 Modified: httpd/httpd/branches/2.2.x/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/CHANGES?rev=686395&r1=686394&r2=686395&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/CHANGES [utf-8] (original) +++ httpd/httpd/branches/2.2.x/CHANGES [utf-8] Fri Aug 15 15:12:47 2008 @@ -5,6 +5,15 @@ mod_proxy_ftp: Prevent XSS attacks when using wildcards in the path of the FTP URL. Discovered by Marc Bevand of Rapid7. [Ruediger Pluem] + *) mod_dav_fs: Retrieve minimal system information about directory + entries when walking a DAV fs, resolving a performance degradation on + Windows. PR 45464. [Jeff Trawick] + + *) mod_cgid: Pass along empty command line arguments from an ISINDEX + query that has consecutive '+' characters in the QUERY_STRING, + matching the behavior of mod_cgi. + [Eric Covener] + *) mod_headers: Prevent Header edit from processing only the first header of possibly multiple headers with the same name and deleting the remaining ones. PR 45333. [Ruediger Pluem] Propchange: httpd/httpd/branches/2.2.x/docs/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Fri Aug 15 15:12:47 2008 @@ -1 +1 @@ -/httpd/httpd/trunk/docs:675610,678761,682369 +/httpd/httpd/trunk/docs:675610,678761,682369,683626,685112 Modified: httpd/httpd/branches/2.2.x/modules/dav/fs/repos.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/dav/fs/repos.c?rev=686395&r1=686394&r2=686395&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/modules/dav/fs/repos.c (original) +++ httpd/httpd/branches/2.2.x/modules/dav/fs/repos.c Fri Aug 15 15:12:47 2008 @@ -119,9 +119,19 @@ ** Does this platform support an executable flag? ** ** ### need a way to portably abstract this query +** +** DAV_FINFO_MASK gives the appropriate mask to use for the stat call +** used to get file attributes. */ #ifndef WIN32 #define DAV_FS_HAS_EXECUTABLE +#define DAV_FINFO_MASK (APR_FINFO_LINK | APR_FINFO_TYPE | APR_FINFO_INODE | \ + APR_FINFO_SIZE | APR_FINFO_CTIME | APR_FINFO_MTIME | \ + APR_FINFO_PROT) +#else +/* as above, but without APR_FINFO_PROT */ +#define DAV_FINFO_MASK (APR_FINFO_LINK | APR_FINFO_TYPE | APR_FINFO_INODE | \ + APR_FINFO_SIZE | APR_FINFO_CTIME | APR_FINFO_MTIME) #endif /* @@ -1479,10 +1489,8 @@ /* append this file onto the path buffer (copy null term) */ dav_buffer_place_mem(pool, &fsctx->path1, dirent.name, len + 1, 0); - - /* ### Optimize me, dirent can give us what we need! */ status = apr_stat(&fsctx->info1.finfo, fsctx->path1.buf, - APR_FINFO_NORM | APR_FINFO_LINK, pool); + DAV_FINFO_MASK, pool); if (status != APR_SUCCESS && status != APR_INCOMPLETE) { /* woah! where'd it go? */ /* ### should have a better error here */ Propchange: httpd/httpd/branches/2.2.x/support/ab.c ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Fri Aug 15 15:12:47 2008 @@ -1 +1 @@ -/httpd/httpd/trunk/support/ab.c:83751-655654,657433,678761,682369 +/httpd/httpd/trunk/support/ab.c:83751-655654,657433,678761,682369,683626,685112 Propchange: httpd/httpd/branches/2.2.x/support/suexec.c ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Fri Aug 15 15:12:47 2008 @@ -1 +1 @@ -/httpd/httpd/trunk/support/suexec.c:655711,678761,682369 +/httpd/httpd/trunk/support/suexec.c:655711,678761,682369,683626,685112