[New-bugs-announce] [issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

Evgeny Kapun report at bugs.python.org
Fri Jul 1 14:30:45 CEST 2011


New submission from Evgeny Kapun <abacabadabacaba at gmail.com>:

TemporaryDirectory.cleanup follows symbolic links to directories and tries to clean them as well. Try this (on Linux):

import os, tempfile
with tempfile.TemporaryDirectory() as d:
	os.symlink("/proc", d + "/test")

----------
components: Library (Lib)
messages: 139571
nosy: abacabadabacaba
priority: normal
severity: normal
status: open
title: tempfile.TemporaryDirectory.cleanup follows symbolic links
type: behavior
versions: Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list