Update of /cvsroot/mailman/mailman/Mailman/Queue
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11824
Modified Files:
Tag: Release_2_1-maint
BounceRunner.py
Log Message:
Set umask for creation of bounce-events queue file.
Index: BounceRunner.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Queue/BounceRunner.py,v
retrieving revision 2.27.2.6
retrieving revision 2.27.2.7
diff -u -d -r2.27.2.6 -r2.27.2.7
--- BounceRunner.py 27 Aug 2005 01:40:16 -0000 2.27.2.6
+++ BounceRunner.py 5 Feb 2006 04:44:04 -0000 2.27.2.7
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2006 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -12,7 +12,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""Bounce queue runner."""
@@ -88,7 +89,11 @@
def _queue_bounces(self, listname, addrs, msg):
today = time.localtime()[:3]
if self._bounce_events_fp is None:
- self._bounce_events_fp = open(self._bounce_events_file, 'a+b')
+ omask = os.umask(006)
+ try:
+ self._bounce_events_fp = open(self._bounce_events_file, 'a+b')
+ finally:
+ os.umask(omask)
for addr in addrs:
cPickle.dump((listname, addr, today, msg),
self._bounce_events_fp, 1)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org