Vajrasky Kok added the comment:

Ah, thanks for the review, Serhiy. My bad. There is no underlying bug of tar. I 
was confused by the behaviour of tar which is converting the absolute path to 
relative path.

So, adding '/home/user/dir/file' to tar when you are in '/home/user/dir' then 
extracting it in the same place, you'll get:
'/home/user/dir/home/user/dir/file'.

I thought it was a bug. But this is what it is supposed to be. I see that 
tarfile module is mimicking GNU tar behaviour.

This is the updated patch.

----------
Added file: 
http://bugs.python.org/file33548/fix_tarfile_overwrites_symlink_v3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19974>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to