Bug#439384: race condition in Maildir writing

2007-08-25 Thread martin f krafft
also sprach Julien BLACHE [EMAIL PROTECTED] [2007.08.24.1843 +0100]: Obvious typo. Updated patch, which also actually includes the code I was testing with: --- /tmp/Maildir.py.orig2007-08-25 11:22:45.0 +0100 +++ /usr/share/python-support/offlineimap/offlineimap/folder/Maildir.py

Bug#439384: race condition in Maildir writing

2007-08-24 Thread martin f krafft
Package: offlineimap Version: 5.99.1 Severity: normal Tags: patch The offlineimap Maildir code checks for file existence and then opens a file. That's open to a race condition. It's better to open the file and fail if it already exists. The following patch does this. It catches OSError 17 (file

Bug#439384: race condition in Maildir writing

2007-08-24 Thread Julien BLACHE
martin f krafft [EMAIL PROTECTED] wrote: +messagename = tmpmessaename = None ^^^ Obvious typo. JB. -- Julien BLACHE - Debian GNU/Linux Developer - [EMAIL PROTECTED] Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG

Bug#439384: race condition in Maildir writing

2007-08-24 Thread martin f krafft
also sprach Julien BLACHE [EMAIL PROTECTED] [2007.08.24.1843 +0100]: martin f krafft [EMAIL PROTECTED] wrote: +messagename = tmpmessaename = None ^^^ Obvious typo. Ouch. New patch pending. And it did work in testing still... :) -- .''`. martin