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.py: set sizes of non-regular files to zero.
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: lars.gustaebel, loewis
Priority: high Keywords: patch

Created on 2005-03-22 19:20 by lars.gustaebel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bugfix-1167128 lars.gustaebel, 2005-03-22 19:20 a patch to Lib/tarfile.py
bugfix-1167128-test lars.gustaebel, 2005-08-25 15:20 patch to Lib/test/test_tarfile.py
Messages (4)
msg48046 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2005-03-22 19:20
This patch provides a better solution to the problem
discussed in item #1167128.
msg48047 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-08-24 06:37
Logged In: YES 
user_id=21627

Can you please provide a test case for this bug?
msg48048 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2005-08-25 15:20
Logged In: YES 
user_id=642936

Here it is. I hope it is sufficient.
msg48049 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-08-27 10:09
Logged In: YES 
user_id=21627

Thanks for the fix and the test case, committed as

tarfile.py 1.32
test_tarfile.py 1.19
NEWS 1.1357
tarfile.py 1.21.2.5
test_tarfile.py 1.16.2.1
NEWS 1.1193.2.90
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41744
2005-03-22 19:20:38lars.gustaebelcreate