[New-bugs-announce] [issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

Eric Andresen report at bugs.python.org
Fri Jan 4 12:02:40 CET 2008


New submission from Eric Andresen:

The tarfile.TarFile.extractall() method is [by default] silently failing
to set directory permissions and times on all but the lexically-latest
directory extracted. This is due to an unintentional re-use of the
'path' variable.

The provided patch renames the second 'path' variable to 'dirpath' which
resolves the problem.

----------
components: Library (Lib)
files: python-tarfile-extractall-fix.patch
messages: 59219
nosy: eandres
severity: normal
status: open
title: tarfile.TarFile.extractall not setting directory permissions correctly
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file9056/python-tarfile-extractall-fix.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1735>
__________________________________


More information about the New-bugs-announce mailing list