diff options
| author | bwarsaw | 2007-01-05 06:47:39 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-01-05 06:47:39 +0000 |
| commit | 9af2533eb89e48683c049c5007737f7e94bbcdc1 (patch) | |
| tree | 54853dcccee453eae60916af4e612b3004cc736f /Mailman/MTA/Postfix.py | |
| parent | d7da90ebc8aeee180ba470c002f7e37ef7df1089 (diff) | |
| download | mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.gz mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.zst mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.zip | |
Diffstat (limited to 'Mailman/MTA/Postfix.py')
| -rw-r--r-- | Mailman/MTA/Postfix.py | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py index 2c6f8c60e..6b43011ff 100644 --- a/Mailman/MTA/Postfix.py +++ b/Mailman/MTA/Postfix.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2006 by the Free Software Foundation, Inc. +# Copyright (C) 2001-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 @@ -174,11 +174,7 @@ def _check_for_virtual_loopaddr(mlist, filename, func): if func is _addtransport: loopdest = 'local:' + loopdest infp = open(filename) - omask = os.umask(007) - try: - outfp = open(filename + '.tmp', 'w') - finally: - os.umask(omask) + outfp = open(filename + '.tmp', 'w') try: # Find the start of the loop address block while True: @@ -264,11 +260,7 @@ def _do_create(mlist, textfile, func): fp = open(textfile, 'r+') except IOError, e: if e.errno <> errno.ENOENT: raise - omask = os.umask(007) - try: - fp = open(textfile, 'w+') - finally: - os.umask(omask) + fp = open(textfile, 'w+') try: func(mlist, fp) finally: @@ -313,11 +305,7 @@ def _do_remove(mlist, textfile): # Otherwise, there's no text file to filter so we're done. return try: - omask = os.umask(007) - try: - outfp = open(textfile + '.tmp', 'w') - finally: - os.umask(omask) + outfp = open(textfile + '.tmp', 'w') filteroutp = False start = '# STANZA START: %s@%s' % (listname, hostname) end = '# STANZA END: %s@%s' % (listname, hostname) |
