[Python-checkins] CVS: python/dist/src/Modules grpmodule.c,2.14,2.15 pwdmodule.c,1.24,1.25
Fred L. Drake
fdrake@usw-pr-cvs1.sourceforge.net
Sat, 10 Mar 2001 19:03:09 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv7979
Modified Files:
grpmodule.c pwdmodule.c
Log Message:
Make sure we close the group and password databases when we are done with
them; this closes SF bug #407504.
Index: grpmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/grpmodule.c,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -r2.14 -r2.15
*** grpmodule.c 2000/09/01 23:29:26 2.14
--- grpmodule.c 2001/03/11 03:03:07 2.15
***************
*** 88,91 ****
--- 88,92 ----
Py_DECREF(v);
}
+ endgrent();
return d;
}
Index: pwdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pwdmodule.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** pwdmodule.c 2000/09/01 23:29:27 1.24
--- pwdmodule.c 2001/03/11 03:03:07 1.25
***************
*** 103,106 ****
--- 103,107 ----
Py_DECREF(v);
}
+ endpwent();
return d;
}