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.

Author andrei.avk
Recipients andrei.avk, mateja.and, python-dev
Date 2021-12-09.01:23:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639013011.76.0.0703908671036.issue44289@roundup.psfhosted.org>
In-reply-to
Content
This affects more use cases than just is_tarfile() and getmembers() results.

is_tarfile() calls open() which is the root cause of the issue. Calling open() 2+ times will also cause the same issue.

In addition to getmembers(), extracting the tar will also silently fail. (and possibly other operations).

I've suggested a different fix in the comment on the PR:
https://github.com/python/cpython/pull/26488#issuecomment-989367707
History
Date User Action Args
2021-12-09 01:23:31andrei.avksetrecipients: + andrei.avk, python-dev, mateja.and
2021-12-09 01:23:31andrei.avksetmessageid: <1639013011.76.0.0703908671036.issue44289@roundup.psfhosted.org>
2021-12-09 01:23:31andrei.avklinkissue44289 messages
2021-12-09 01:23:31andrei.avkcreate