This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: tarfile.TarFile.extractall not setting directory permissions correctly
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.0, Python 2.6, Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: lars.gustaebel Nosy List: eandres, lars.gustaebel
Priority: high Keywords: patch

Created on 2008-01-04 11:02 by eandres, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-tarfile-extractall-fix.patch eandres, 2008-01-04 11:02 Patch for tarfile.py
Messages (3)
msg59219 - (view) Author: Eric Andresen (eandres) Date: 2008-01-04 11:02
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.
msg59224 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2008-01-04 14:02
Thanks for the patch. I added a testcase and applied it to the trunk,
see r59712. Python 2.5 follows later on.
msg59227 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2008-01-04 14:47
Committed to release25-maint branch as r59713.
History
Date User Action Args
2022-04-11 14:56:29adminsetgithub: 46076
2008-01-04 14:47:23lars.gustaebelsetstatus: open -> closed
resolution: accepted
messages: + msg59227
2008-01-04 14:02:50lars.gustaebelsetmessages: + msg59224
2008-01-04 12:58:59christian.heimessetpriority: high
keywords: + patch
versions: + Python 3.0
2008-01-04 11:37:04lars.gustaebelsetassignee: lars.gustaebel
nosy: + lars.gustaebel
2008-01-04 11:04:27eandressettype: behavior
2008-01-04 11:02:40eandrescreate