View | Details | Raw Unified | Return to bug 36636
Collapse All | Expand All

(-)modules/dav/main/mod_dav.c (-4 / +2 lines)
Lines 1312-1319 Link Here
1312
    dav_error *err;
1312
    dav_error *err;
1313
1313
1314
    /* open lock database, to report on supported lock properties */
1314
    /* open lock database, to report on supported lock properties */
1315
    /* ### should open read-only */
1315
    if ((err = dav_open_lockdb(r, 1, &lockdb)) != NULL) {
1316
    if ((err = dav_open_lockdb(r, 0, &lockdb)) != NULL) {
1317
        return dav_push_error(r->pool, err->status, 0,
1316
        return dav_push_error(r->pool, err->status, 0,
1318
                              "The lock database could not be opened, "
1317
                              "The lock database could not be opened, "
1319
                              "preventing the reporting of supported lock "
1318
                              "preventing the reporting of supported lock "
Lines 2016-2023 Link Here
2016
    ctx.bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
2015
    ctx.bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
2017
    apr_pool_create(&ctx.scratchpool, r->pool);
2016
    apr_pool_create(&ctx.scratchpool, r->pool);
2018
2017
2019
    /* ### should open read-only */
2018
    if ((err = dav_open_lockdb(r, 1, &ctx.w.lockdb)) != NULL) {
2020
    if ((err = dav_open_lockdb(r, 0, &ctx.w.lockdb)) != NULL) {
2021
        err = dav_push_error(r->pool, err->status, 0,
2019
        err = dav_push_error(r->pool, err->status, 0,
2022
                             "The lock database could not be opened, "
2020
                             "The lock database could not be opened, "
2023
                             "preventing access to the various lock "
2021
                             "preventing access to the various lock "

Return to bug 36636