[issue14810] Bug in tarfile

2012-05-15 Thread Hans Werner May

Hans Werner May nc-may...@netcologne.de added the comment:

Out of curiosity: where did you get a file that was last modified in 1956?

No idea, this was a jpeg file, probably downloaded from internet. Btw, on Linux 
you can manipulate the creation date with the touch command, so it is possible 
to create a tarball with a member which has creation date 1956, but it is not 
possible to extract it with the extractall method.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14810
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14810] Bug in tarfile

2012-05-14 Thread Hans Werner May

New submission from Hans Werner May nc-may...@netcologne.de:

Bug in tarfile:

In extractall, when a file exists in tarball with changetime older than (I 
don't know, in my case it was year 1956) tarfile raises an Overflow exception:

  File /usr/lib64/python2.7/tarfile.py, line 2298, in utime
os.utime(targetpath, (tarinfo.mtime, tarinfo.mtime))
OverflowError: Python int too large to convert to C long

System: Mageia 1.0
Python version: 2.7.1

--
messages: 160674
nosy: hwm
priority: normal
severity: normal
status: open
title: Bug in tarfile
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14810
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com