Message408062
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 |
|
Date |
User |
Action |
Args |
2021-12-09 01:23:31 | andrei.avk | set | recipients:
+ andrei.avk, python-dev, mateja.and |
2021-12-09 01:23:31 | andrei.avk | set | messageid: <1639013011.76.0.0703908671036.issue44289@roundup.psfhosted.org> |
2021-12-09 01:23:31 | andrei.avk | link | issue44289 messages |
2021-12-09 01:23:31 | andrei.avk | create | |
|