[Zope-Checkins] SVN: Zope/trunk/ - Collector #1267: applied patch to fix segmentation faults on

Andreas Jung andreas at andreas-jung.com
Thu Aug 5 06:50:03 EDT 2004


Log message for revision 26909:
  
       - Collector #1267: applied patch to fix segmentation faults on 
         x86_64 systems
  


Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/Components/initgroups/initgroups.c


-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2004-08-04 23:05:23 UTC (rev 26908)
+++ Zope/trunk/doc/CHANGES.txt	2004-08-05 10:50:02 UTC (rev 26909)
@@ -142,6 +142,9 @@
 
     Bugs fixed
 
+     - Collector #1267: applied patch to fix segmentation faults on 
+       x86_64 systems
+
      - ZReST: the charset used in the rendered HTML was not set to the 
        corresponding output_encoding property of the ZReST instance. In addition
        changing the encodings through the Properties tab did not re-render 

Modified: Zope/trunk/lib/Components/initgroups/initgroups.c
===================================================================
--- Zope/trunk/lib/Components/initgroups/initgroups.c	2004-08-04 23:05:23 UTC (rev 26908)
+++ Zope/trunk/lib/Components/initgroups/initgroups.c	2004-08-05 10:50:02 UTC (rev 26909)
@@ -23,11 +23,14 @@
 initgroups_initgroups(PyObject *self, PyObject *args)
 {
 	char *username;
+	unsigned int igid;
 	gid_t gid;
 
-	if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid))
+	if (!PyArg_ParseTuple(args, "sI:initgroups", &username, &igid))
 		return NULL;
 
+	gid = igid;
+
 	if (initgroups(username, gid) == -1)
 		return PyErr_SetFromErrno(PyExc_OSError);
 



More information about the Zope-Checkins mailing list