summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2007-01-05 06:47:39 +0000
committerbwarsaw2007-01-05 06:47:39 +0000
commit9af2533eb89e48683c049c5007737f7e94bbcdc1 (patch)
tree54853dcccee453eae60916af4e612b3004cc736f /Mailman/Utils.py
parentd7da90ebc8aeee180ba470c002f7e37ef7df1089 (diff)
downloadmailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.gz
mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.zst
mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.zip
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index d89d45f59..0d46e7d32 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 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
@@ -347,6 +347,7 @@ def set_global_password(pw, siteadmin=True):
else:
filename = config.LISTCREATOR_PW_FILE
# rw-r-----
+ # XXX Is the default umask of 007 good enough?
omask = os.umask(026)
try:
fp = open(filename, 'w')
@@ -641,11 +642,11 @@ def reap(kids, func=None, once=False):
-def makedirs(path):
+def makedirs(path, mode=02775):
try:
omask = os.umask(0)
try:
- os.makedirs(path, 02775)
+ os.makedirs(path, mode)
finally:
os.umask(omask)
except OSError, e: