[issue8833] tarfile: broken hardlink handling and testcase.
Justin Bronder
report at bugs.python.org
Thu May 27 18:07:09 CEST 2010
New submission from Justin Bronder <jsbronder at gentoo.org>:
When adding hardlinks to an archive, tarfile does not set the size
of each additional link to zero as specified by the tar format [1].
In addition, the current test case hardlinks is also broken.
Instead of testing that the size of a hardlink to a non-empty file
is 0, it tests that the size to a empty file is zero, which cannot
fail.
A patch against current svn trunk is attached and was tested with
'python -m test.regrtest -v test_tarfile'
1. http://www.gnu.org/software/tar/manual/tar.html#SEC170
----------
components: Library (Lib)
files: python-2.7-tarfile-hardlinks.patch
keywords: patch
messages: 106612
nosy: jsbronder
priority: normal
severity: normal
status: open
title: tarfile: broken hardlink handling and testcase.
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file17474/python-2.7-tarfile-hardlinks.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8833>
_______________________________________
More information about the Python-bugs-list
mailing list