diff options
| author | bwarsaw | 2002-04-19 21:31:24 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-04-19 21:31:24 +0000 |
| commit | 66913d2abb8728dde9111b527bcbcc165c1fee3e (patch) | |
| tree | bf21ec8805e92dee9b46414fd2b89e3929cbda5c /Mailman/Handlers/Scrubber.py | |
| parent | 86270a26996f490f0021a3ad59fa1bb6607486b4 (diff) | |
| download | mailman-66913d2abb8728dde9111b527bcbcc165c1fee3e.tar.gz mailman-66913d2abb8728dde9111b527bcbcc165c1fee3e.tar.zst mailman-66913d2abb8728dde9111b527bcbcc165c1fee3e.zip | |
Diffstat (limited to 'Mailman/Handlers/Scrubber.py')
| -rw-r--r-- | Mailman/Handlers/Scrubber.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py index ac3c3ad97..0d101da41 100644 --- a/Mailman/Handlers/Scrubber.py +++ b/Mailman/Handlers/Scrubber.py @@ -207,7 +207,10 @@ def save_attachment(mlist, msg, filter_html=1): digest = sha.new(msgid).hexdigest() msgdir = digest[:4] + digest[-4:] try: - os.mkdir(os.path.join(dir, msgdir), 02775) + path = os.path.join(dir, msgdir) + os.mkdir(path, 02775) + # For FreeBSD, which is broken wrt the mode arg of mkdir() + os.chmod(path, 02775) except OSError, e: if e.errno <> errno.EEXIST: raise # Figure out the attachment type and get the decoded data |
