Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1:/tmp/cvs-serv23734 Modified Files: tarfile.py Log Message: [Bug #822668] tarfile raises an exception if the tarfile is gzipped and is too large; the gzip filesize should be written out mod 2**32. (Reported by Johan Fredrik Ohman) Index: tarfile.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** tarfile.py 22 Apr 2003 22:03:11 -0000 1.8 --- tarfile.py 24 Oct 2003 17:38:34 -0000 1.9 *************** *** 358,362 **** if self.type == "gz": self.fileobj.write(struct.pack("<l", self.crc)) ! self.fileobj.write(struct.pack("<L", self.pos)) if not self._extfileobj: --- 358,362 ---- if self.type == "gz": self.fileobj.write(struct.pack("<l", self.crc)) ! self.fileobj.write(struct.pack("<L", self.pos & 0xffffFFFFL)) if not self._extfileobj:
participants (1)
-
akuchling@users.sourceforge.net