httpd/httpd-2.4.58-properr.patch

31 lines
1.4 KiB
Diff
Raw Normal View History

--- httpd-2.4.58/modules/dav/fs/dbm.c.properr
+++ httpd-2.4.58/modules/dav/fs/dbm.c
@@ -100,7 +100,7 @@
/* There might not be a <db> if we had problems creating it. */
if (db == NULL) {
errcode = 1;
- errstr = "Could not open property database.";
+ errstr = "Could not open database.";
if (APR_STATUS_IS_EDSOOPEN(status))
ap_log_error(APLOG_MARK, APLOG_CRIT, status, ap_server_conf, APLOGNO(00576)
"The DBM driver could not be loaded");
@@ -147,7 +147,7 @@
"mod_dav_fs: The DBM library '%s' could not be loaded: %s",
err->reason, err->msg);
return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 1, status,
- "Could not load library for property database.");
+ "Could not load library for DBM database.");
}
if ((status = apr_dbm_open2(&file, driver, pathname,
ro ? APR_DBM_READONLY : APR_DBM_RWCREATE,
@@ -162,6 +162,9 @@
!= APR_SUCCESS
&& !ro) {
/* ### do something with 'status' */
+ ap_log_error(APLOG_MARK, APLOG_ERR, status, ap_server_conf,
+ "mod_dav_fs: apr_dbm_open() failed for %s (read-%s)",
+ pathname, ro ? "only" : "write");
/* we can't continue if we couldn't open the file
and we need to write */