You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/11/06 05:52:40 UTC

svn commit: r1198131 - /subversion/trunk/subversion/libsvn_delta/compat.c

Author: hwright
Date: Sun Nov  6 04:52:40 2011
New Revision: 1198131

URL: http://svn.apache.org/viewvc?rev=1198131&view=rev
Log:
Ev2 shims: Only close our directory batons if we've opened them.

* subversion/libsvn_delta/compat.c
  (drive): Only close directory batons if we've opened them, thus preventing
    segfaults.

Modified:
    subversion/trunk/subversion/libsvn_delta/compat.c

Modified: subversion/trunk/subversion/libsvn_delta/compat.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/compat.c?rev=1198131&r1=1198130&r2=1198131&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/compat.c (original)
+++ subversion/trunk/subversion/libsvn_delta/compat.c Sun Nov  6 04:52:40 2011
@@ -1173,7 +1173,10 @@ drive(const struct operation *operation,
 
       /* We *always* open the child directory, so drive the child, change any
          props, and then close the directory. */
-      if (child->kind == svn_kind_dir)
+      if (child->kind == svn_kind_dir
+                   && (child->operation == OP_OPEN
+                    || child->operation == OP_PROPSET
+                    || child->operation == OP_ADD))
         {
           SVN_ERR(drive(child, editor, make_abs_paths, iterpool));
           SVN_ERR(change_props(editor, child->baton, child, iterpool));