summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1998-11-04 23:46:26 +0000
committerbwarsaw1998-11-04 23:46:26 +0000
commitf850176fa13c48416d68f5ffee24b61932581fc3 (patch)
tree610e11e79b0fda141cb5585fae59f89daf33b004
parentc5c48980b14248460a489c1439b7ae4425c9e905 (diff)
downloadmailman-f850176fa13c48416d68f5ffee24b61932581fc3.tar.gz
mailman-f850176fa13c48416d68f5ffee24b61932581fc3.tar.zst
mailman-f850176fa13c48416d68f5ffee24b61932581fc3.zip
-rw-r--r--Mailman/Archiver/HyperArch.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index 9f4c58a2e..cc5d8d867 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -37,6 +37,10 @@ import HyperDatabase
import pipermail
from Mailman import mm_cfg
+from Mailman.Utils import mkdir, open_ex
+# TBD: ugly, ugly, ugly -baw
+open = open_ex
+
def html_quote(s):
repls = ( ('&', '&'),
@@ -385,8 +389,8 @@ arch_listing_end = '''\
class HyperArchive(pipermail.T):
# some defaults
- DIRMODE=0775
- FILEMODE=0664
+ DIRMODE=02775
+ FILEMODE=0660
VERBOSE=0
@@ -500,6 +504,8 @@ class HyperArchive(pipermail.T):
def GetArchLock(self):
if self._lock_file:
return 1
+ # TBD: This needs to be rewritten to use the generalized locking
+ # mechanism (when that exists). -baw
ou = os.umask(0)
try:
self._lock_file = posixfile.open(
@@ -738,7 +744,7 @@ class HyperArchive(pipermail.T):
except os.error, errdata:
errno, errmsg=errdata
if errno==2:
- os.mkdir(archivedir)
+ mkdir(archivedir)
else: raise os.error, errdata
self.open_new_archive(i, archivedir)