[Zope-dev] Zope 2.5. cAccessControl.c tentative patch
Matthew T. Kromer
matt@zope.com
Fri, 01 Feb 2002 13:03:25 -0500
This is a multi-part message in MIME format.
--------------090109000608030409080301
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
FYI, those people who had to set ZOPE_SECURITY_POLICY to PYTHON are
advised to apply the following Patch for 2.5's cAccessControl.c module
and see if it helps.
As far as I can see, it solves the Zope 2.5 problems reported by Martijn
Faassen with ParsedXML.
--
Matt Kromer
Zope Corporation http://www.zope.com/
--------------090109000608030409080301
Content-Type: text/plain;
name="cAccessControl.c.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="cAccessControl.c.patch"
Index: cAccessControl.c
===================================================================
RCS file: /cvs-repository/Zope/lib/python/AccessControl/cAccessControl.c,v
retrieving revision 1.13
diff -u -r1.13 cAccessControl.c
--- cAccessControl.c 11 Jan 2002 17:14:27 -0000 1.13
+++ cAccessControl.c 1 Feb 2002 17:27:31 -0000
@@ -1703,6 +1703,7 @@
Py_DECREF(r);
r = self->__roles__;
if (r == NULL) goto err;
+ Py_INCREF(r);
}
/*|
--------------090109000608030409080301--