|
|
008793 |
Index: acinclude.m4
|
|
|
008793 |
===================================================================
|
|
|
008793 |
--- a/acinclude.m4 (revision 1667671)
|
|
|
008793 |
+++ b/acinclude.m4 (working copy)
|
|
|
008793 |
@@ -43,6 +43,7 @@
|
|
|
008793 |
APACHE_SUBST(installbuilddir)
|
|
|
008793 |
APACHE_SUBST(runtimedir)
|
|
|
008793 |
APACHE_SUBST(proxycachedir)
|
|
|
008793 |
+ APACHE_SUBST(davlockdb)
|
|
|
008793 |
APACHE_SUBST(other_targets)
|
|
|
008793 |
APACHE_SUBST(progname)
|
|
|
008793 |
APACHE_SUBST(prefix)
|
|
|
008793 |
@@ -710,6 +711,7 @@
|
|
|
008793 |
APACHE_SUBST_EXPANDED_ARG(runtimedir)
|
|
|
008793 |
APACHE_SUBST_EXPANDED_ARG(logfiledir)
|
|
|
008793 |
APACHE_SUBST_EXPANDED_ARG(proxycachedir)
|
|
|
008793 |
+ APACHE_SUBST_EXPANDED_ARG(davlockdb)
|
|
|
008793 |
])
|
|
|
008793 |
|
|
|
008793 |
dnl
|
|
|
008793 |
Index: build/mkconfNW.awk
|
|
|
008793 |
===================================================================
|
|
|
008793 |
--- a/build/mkconfNW.awk (revision 1667671)
|
|
|
008793 |
+++ b/build/mkconfNW.awk (working copy)
|
|
|
008793 |
@@ -26,6 +26,7 @@
|
|
|
008793 |
A["runtimedir"] = "logs"
|
|
|
008793 |
A["errordir"] = "error"
|
|
|
008793 |
A["proxycachedir"] = "proxy"
|
|
|
008793 |
+ A["davlockdb"] = "davlockdb"
|
|
|
008793 |
|
|
|
008793 |
B["htdocsdir"] = A["ServerRoot"]"/"A["htdocsdir"]
|
|
|
008793 |
B["iconsdir"] = A["ServerRoot"]"/"A["iconsdir"]
|
|
|
008793 |
@@ -32,6 +33,7 @@
|
|
|
008793 |
B["manualdir"] = A["ServerRoot"]"/"A["manualdir"]
|
|
|
008793 |
B["errordir"] = A["ServerRoot"]"/"A["errordir"]
|
|
|
008793 |
B["proxycachedir"] = A["ServerRoot"]"/"A["proxycachedir"]
|
|
|
008793 |
+ B["davlockdb"] = A["ServerRoot"]"/"A["davlockdb"]
|
|
|
008793 |
B["cgidir"] = A["ServerRoot"]"/"A["cgidir"]
|
|
|
008793 |
B["logfiledir"] = A["logfiledir"]
|
|
|
008793 |
B["sysconfdir"] = A["sysconfdir"]
|
|
|
008793 |
Index: include/ap_config_layout.h.in
|
|
|
008793 |
===================================================================
|
|
|
008793 |
--- a/include/ap_config_layout.h.in (revision 1667671)
|
|
|
008793 |
+++ b/include/ap_config_layout.h.in (working copy)
|
|
|
008793 |
@@ -60,5 +60,7 @@
|
|
|
008793 |
#define DEFAULT_REL_LOGFILEDIR "@rel_logfiledir@"
|
|
|
008793 |
#define DEFAULT_EXP_PROXYCACHEDIR "@exp_proxycachedir@"
|
|
|
008793 |
#define DEFAULT_REL_PROXYCACHEDIR "@rel_proxycachedir@"
|
|
|
008793 |
+#define DEFAULT_EXP_DAVLOCKDB "@exp_davlockdb@"
|
|
|
008793 |
+#define DEFAULT_REL_DAVLOCKDB "@rel_davlockdb@"
|
|
|
008793 |
|
|
|
008793 |
#endif /* AP_CONFIG_LAYOUT_H */
|
|
|
008793 |
Index: modules/dav/fs/mod_dav_fs.c
|
|
|
008793 |
===================================================================
|
|
|
008793 |
--- a/modules/dav/fs/mod_dav_fs.c (revision 1667671)
|
|
|
008793 |
+++ b/modules/dav/fs/mod_dav_fs.c (working copy)
|
|
|
008793 |
@@ -17,6 +17,7 @@
|
|
|
008793 |
#include "httpd.h"
|
|
|
008793 |
#include "http_config.h"
|
|
|
008793 |
#include "apr_strings.h"
|
|
|
008793 |
+#include "ap_config_auto.h"
|
|
|
008793 |
|
|
|
008793 |
#include "mod_dav.h"
|
|
|
008793 |
#include "repos.h"
|
|
|
008793 |
@@ -39,7 +40,15 @@
|
|
|
008793 |
|
|
|
008793 |
static void *dav_fs_create_server_config(apr_pool_t *p, server_rec *s)
|
|
|
008793 |
{
|
|
|
008793 |
- return apr_pcalloc(p, sizeof(dav_fs_server_conf));
|
|
|
008793 |
+ dav_fs_server_conf *conf = apr_pcalloc(p, sizeof(dav_fs_server_conf));
|
|
|
008793 |
+#ifdef DEFAULT_EXP_DAVLOCKDB
|
|
|
008793 |
+ conf->lockdb_path = DEFAULT_EXP_DAVLOCKDB;
|
|
|
008793 |
+ if (*conf->lockdb_path == '\0') {
|
|
|
008793 |
+ conf->lockdb_path = NULL;
|
|
|
008793 |
+ }
|
|
|
008793 |
+#endif
|
|
|
008793 |
+
|
|
|
008793 |
+ return conf;
|
|
|
008793 |
}
|
|
|
008793 |
|
|
|
008793 |
static void *dav_fs_merge_server_config(apr_pool_t *p,
|