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/Cgi/create.py | |
| parent | d7da90ebc8aeee180ba470c002f7e37ef7df1089 (diff) | |
| download | mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.gz mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.zst mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.zip | |
Diffstat (limited to 'Mailman/Cgi/create.py')
| -rw-r--r-- | Mailman/Cgi/create.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 8c11f22e5..53001b356 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.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 @@ -17,7 +17,6 @@ """Create mailing lists through the web.""" -import os import cgi import sha import sys @@ -162,15 +161,8 @@ def process_request(doc, cgidata): mlist = MailList.MailList() try: pw = sha.new(password).hexdigest() - # Guarantee that all newly created files have the proper permission. - # proper group ownership should be assured by the autoconf script - # enforcing that all directories have the group sticky bit set - oldmask = os.umask(002) try: - try: - mlist.Create(fqdn_listname, owner, pw, langs) - finally: - os.umask(oldmask) + mlist.Create(fqdn_listname, owner, pw, langs) except Errors.EmailAddressError, s: request_creation(doc, cgidata, _('Bad owner email address: $s')) return |
