1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

When unlocking, the auto-checkin code does not need to refer to the

parent resource. We want to (possibly) check in only the resource
identified by the params.

Bug found by David Waite <mass@akuma.org>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98187 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Greg Stein
2003-01-07 21:08:03 +00:00
parent faffd80ac1
commit 60c41ddef3

View File

@@ -2019,14 +2019,14 @@ dav_error *dav_auto_checkin(
/* If parent resource was checked out, and auto-checkin is enabled,
* then check it in.
*/
if (av_info->parent_resource != NULL && av_info->parent_resource->working
&& (unlock || av_info->parent_checkedout)) {
if (!unlock
&& av_info->parent_checkedout
&& av_info->parent_resource != NULL
&& av_info->parent_resource->working) {
auto_version = (*vsn_hooks->auto_versionable)(av_info->parent_resource);
if (auto_version == DAV_AUTO_VERSION_ALWAYS ||
(unlock && (auto_version == DAV_AUTO_VERSION_LOCKED))) {
if (auto_version == DAV_AUTO_VERSION_ALWAYS) {
if ((err = (*vsn_hooks->checkin)(av_info->parent_resource,
0 /*keep_checked_out*/, NULL))
!= NULL) {