--- ORIG_tarfile.py 2005-03-20 20:31:26.000000000 +0100 +++ tarfile.py 2005-03-20 20:32:01.000000000 +0100 @@ -1086,4 +1086,5 @@ stmd = statres.st_mode + size = statres.st_size if stat.S_ISREG(stmd): inode = (statres.st_ino, statres.st_dev) @@ -1108,4 +1109,5 @@ type = SYMTYPE linkname = os.readlink(name) + size = 0 elif stat.S_ISCHR(stmd): type = CHRTYPE @@ -1121,5 +1123,5 @@ tarinfo.uid = statres.st_uid tarinfo.gid = statres.st_gid - tarinfo.size = statres.st_size + tarinfo.size = size tarinfo.mtime = statres.st_mtime tarinfo.type = type