diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2010-06-03 10:15:18 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2010-06-03 10:15:18 (GMT) |
commit | 547f808e266ee29deeabef9259dc81c3b17c9b34 (patch) | |
tree | b39111ce4e925045a930dc7bc81e62bff2d657a1 /Lib/tarfile.py | |
parent | d2d08c6872a118cfd910439420c380101e18c38e (diff) | |
download | cpython-547f808e266ee29deeabef9259dc81c3b17c9b34.zip cpython-547f808e266ee29deeabef9259dc81c3b17c9b34.tar.gz cpython-547f808e266ee29deeabef9259dc81c3b17c9b34.tar.bz2 |
Merged revisions 81665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81665 | lars.gustaebel | 2010-06-03 12:11:52 +0200 (Thu, 03 Jun 2010) | 11 lines
Merged revisions 81663 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81663 | lars.gustaebel | 2010-06-03 11:56:22 +0200 (Thu, 03 Jun 2010) | 4 lines
Issue #8833: tarfile created hard link entries with a size
field != 0 by mistake. The associated testcase did not
expose this bug because it was broken too.
........
................
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 125d95d..bc608e9 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -1857,7 +1857,7 @@ class TarFile(object): tarinfo.mode = stmd tarinfo.uid = statres.st_uid tarinfo.gid = statres.st_gid - if stat.S_ISREG(stmd): + if type == REGTYPE: tarinfo.size = statres.st_size else: tarinfo.size = 0 |