[New-bugs-announce] [issue6054] tarfile normalizes arcname

mkv report at bugs.python.org
Mon May 18 18:19:57 CEST 2009

New submission from mkv <mvirkkil at cc.hut.fi>:

When creating tar archives using the tarfile module, requested arc names
are not respected. 

It is currently impossible to create a tar which when listing contents
would give:
$tar tvf test.tar

The actual result will be
$tar tvf test.tar

This is caused by TarInfo's tobuf method calling normpath() on all file
names, even when the user has explicitly specified a certain name.

components: Library (Lib)
messages: 88033
nosy: mkv
severity: normal
status: open
title: tarfile normalizes arcname
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list