diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-11-09 21:16:46 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-11-09 21:16:46 (GMT) |
commit | 978d8286ae36ac3570d1a2c6f48187ad9c0919c7 (patch) | |
tree | c5a4821258061a9887a4c5eb702df7beec4216c8 /Misc | |
parent | 6fc2382883516434c5876e768fabd75a0c633d84 (diff) | |
download | cpython-978d8286ae36ac3570d1a2c6f48187ad9c0919c7.zip cpython-978d8286ae36ac3570d1a2c6f48187ad9c0919c7.tar.gz cpython-978d8286ae36ac3570d1a2c6f48187ad9c0919c7.tar.bz2 |
[Patch #1514543] mailbox (Maildir): avoid losing messages on name clash
Two changes:
Where possible, use link()/remove() to move files into a directory; this
makes it easier to avoid overwriting an existing file.
Use _create_carefully() to create files in tmp/, which uses O_EXCL.
Backport candidate.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -100,6 +100,10 @@ Library weren't passing the message factory on to newly created Maildir/MH objects. +- Patch #1514543: In the Maildir clash, report errors if there's + a name clash instead of possibly losing a message. (Patch by David + Watson.) + - Patch #1514544: Try to ensure that messages/indexes have been physically written to disk after calling .flush() or .close(). (Patch by David Watson.) |