On Feb 4, 11:21 am, "Edward K. Ream" <[email protected]> wrote:

There is good news and bad. The good new is that it was easier than
expected to remove g.makeAllNonExistentDirectories from
g.utils_rename.  Details later.

The bad news is that the following code in createBackupFile can still
create a race condition:

        fd,backupName = tempfile.mkstemp(text=False)
        os.close(fd)
        shutil.move(fileName,backupName)

My next plan will be to write fileName to fd before closing fd.  That
should be bulletproof.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to