[New-bugs-announce] [issue10184] tarfile touches directories twice

Martin v. Löwis report at bugs.python.org
Sat Oct 23 21:06:40 CEST 2010

New submission from Martin v. Löwis <martin at v.loewis.de>:

When extracting, the time stamps of directories are modified twice: once when creating the directories, and then once in reverse order when done.
The first utimes call is redundant; it also causes issues with a buggy NFS server, see


(specifically, touching a file twice with the same second-resolution time stamp will increase the microsecond counter).

The attached patch works around the issue; regardless of the NFS bug, I think that the redundant call should be eliminated.

assignee: ghaering
files: tarfile.diff
keywords: patch
messages: 119467
nosy: ghaering, loewis
priority: normal
severity: normal
status: open
title: tarfile touches directories twice
Added file: http://bugs.python.org/file19345/tarfile.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list