[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

Nick Coghlan report at bugs.python.org
Tue Jul 26 03:56:08 CEST 2011


Nick Coghlan <ncoghlan at gmail.com> added the comment:

I agree with Antoine - it's a simple bug introduced by the attempt to allow temporary directories to be correctly cleaned up during interpreter shutdown.

The race condition due to the usage of LBYL is shared with the full shutil.rmtree implementation, so the patch looks reasonable to me.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12464>
_______________________________________


More information about the Python-bugs-list mailing list