summaryrefslogtreecommitdiff
path: root/Mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Mailman/Archiver/HyperArch.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index a24c94234..92fce247f 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -884,7 +884,11 @@ class HyperArchive(pipermail.T):
archz = gzip.open(oldgzip)
except (IOError, RuntimeError, os.error):
pass
- newz = gzip.open(gzipfile, 'w')
+ try:
+ ou = os.umask(002)
+ newz = gzip.open(gzipfile, 'w')
+ finally:
+ os.umask(ou)
if archz :
newz.write(archz.read())
archz.close()