diff options
| author | bwarsaw | 1998-07-22 22:17:01 +0000 |
|---|---|---|
| committer | bwarsaw | 1998-07-22 22:17:01 +0000 |
| commit | 9c08a20db6f5079e698fd4ce5533bd0c30de1d00 (patch) | |
| tree | ca3d0ea0736ab2fe9ecbb617dbf49f5f78d9ccff | |
| parent | 5afa0b9a63d58d91077088a30539868c4f623458 (diff) | |
| download | mailman-9c08a20db6f5079e698fd4ce5533bd0c30de1d00.tar.gz mailman-9c08a20db6f5079e698fd4ce5533bd0c30de1d00.tar.zst mailman-9c08a20db6f5079e698fd4ce5533bd0c30de1d00.zip | |
| -rwxr-xr-x | bin/newlist | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/newlist b/bin/newlist index 5c8800ed0..f4ceb5d1e 100755 --- a/bin/newlist +++ b/bin/newlist @@ -75,7 +75,14 @@ def main(argv): newlist = MailList.MailList() pw = crypt(list_pw , Utils.GetRandomSeed()) - newlist.Create(list_name, owner_mail, pw) + # 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: + newlist.Create(list_name, owner_mail, pw) + finally: + os.umask(oldmask) ###os.system('%s %s' % (ADDALIASES_CMD, list_name)) print ''' |
