aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2017-11-23 09:39:51 -0800
committerMark Sapiro <mark@msapiro.net>2017-11-23 09:39:51 -0800
commit82ed0668ce15834e49055b4503483c6602142e5a (patch)
tree91511ea288fefee2e11e562b7b38329dc0f1a17d
parentb8ea43df28d0afc4b647fdfd51cbc77b071218ee (diff)
downloadmailman2-82ed0668ce15834e49055b4503483c6602142e5a.tar.gz
mailman2-82ed0668ce15834e49055b4503483c6602142e5a.tar.xz
mailman2-82ed0668ce15834e49055b4503483c6602142e5a.zip
Ignore missing .db files when updating group and mode.
Diffstat (limited to '')
-rw-r--r--Mailman/MTA/Postfix.py7
-rw-r--r--NEWS3
2 files changed, 9 insertions, 1 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py
index b829ad6e..6fa3f14a 100644
--- a/Mailman/MTA/Postfix.py
+++ b/Mailman/MTA/Postfix.py
@@ -56,7 +56,12 @@ def _update_maps():
if (stat[ST_MODE] & targetmode) <> targetmode:
os.chmod(file, stat[ST_MODE] | targetmode)
dbfile = file + '.db'
- stat = os.stat(dbfile)
+ try:
+ stat = os.stat(dbfile)
+ except OSError, e:
+ if e.errno <> errno.ENOENT:
+ raise
+ return
if (stat[ST_MODE] & targetmode) <> targetmode:
os.chmod(dbfile, stat[ST_MODE] | targetmode)
user = mm_cfg.MAILMAN_USER
diff --git a/NEWS b/NEWS
index f16bbd1d..c8b7f347 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,9 @@ Here is a history of user visible changes to Mailman.
Bug fixes and other patches
+ - When updating the group and mode of a .db file with Mailman's Postfix
+ integration, a missing file is ignored. (LP: #1734162)
+
- The DELIVERY_RETRY_WAIT setting is now effective. (LP: #1729472)
2.1.25 (26-Oct-2017)