[issue30438] tarfile would fail to extract tarballs with files under R/O directories (twice)

Catherine Devlin report at bugs.python.org
Wed May 24 22:56:43 EDT 2017


Catherine Devlin added the comment:

Okay, the problem is a little more specific than my last message suggested, but also a little less specific than the original report.

A "PermissionError: [Errno 13] Permission denied" is thrown when expanding a tarfile to which a file had been added more than once, *if* the file is not writeable.  (tarfile expands the file twice, but the second time finds a non-writeable file in the way.)

This was true for Yaroslav's case because his file was added once as its directory was added, and again when the file was added directly.  The permission of the parent directory does not matter after all.

----------

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


More information about the Python-bugs-list mailing list