You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2022/11/09 16:50:06 UTC
svn commit: r1905206 - /httpd/httpd/trunk/modules/dav/main/mod_dav.c
Author: manu
Date: Wed Nov 9 16:50:06 2022
New Revision: 1905206
URL: http://svn.apache.org/viewvc?rev=1905206&view=rev
Log:
Initialize allow_lockdiscovery as unset
Removing the initialization means it is set as 0 by apr_pcalloc(), and
0 is DAV_ENABLED_UNSET
That is required to inherit configuration in dav_merge_dir_config()
as pointed out by rpluem@
We only check for allow_lockdiscovery against DAV_ENABLED_OFF, hence
DAV_ENABLED_UNSET is equivalent to DAV_ENABLED_ON, which is required
for backware compatibility sake.
Modified:
httpd/httpd/trunk/modules/dav/main/mod_dav.c
Modified: httpd/httpd/trunk/modules/dav/main/mod_dav.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/main/mod_dav.c?rev=1905206&r1=1905205&r2=1905206&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/dav/main/mod_dav.c (original)
+++ httpd/httpd/trunk/modules/dav/main/mod_dav.c Wed Nov 9 16:50:06 2022
@@ -160,8 +160,6 @@ static void *dav_create_dir_config(apr_p
conf = (dav_dir_conf *)apr_pcalloc(p, sizeof(*conf));
- conf->allow_lockdiscovery = DAV_ENABLED_ON;
-
/* clean up the directory to remove any trailing slash */
if (dir != NULL) {
char *d;