This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mvo
Recipients SilentGhost, barry, lars.gustaebel, mvo, serhiy.storchaka
Date 2015-01-19.09:27:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421659640.35.0.499518720939.issue23228@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks SilentGhost for your feedback and sorry for my slow reply.

I looked into this some more and attached a updated patch with a more complete test. It also covers a crash now that happens when there is a symlink cycle in the tar and on disk. 

My fix is to remove existing links before unpack and replace them with the link in the tar. This is what gnu tar is also doing (according to http://www.gnu.org/software/tar/manual/html_node/Dealing-with-Old-Files.html). However this seems to be a behavior change of what the tarfile module has traditionally been done so feel free to reject it, I'm open to alternative ideas of course (even though I feel like having the same behavior as gnu tar is desirable).

Thanks,
 Michael
History
Date User Action Args
2015-01-19 09:27:20mvosetrecipients: + mvo, barry, lars.gustaebel, SilentGhost, serhiy.storchaka
2015-01-19 09:27:20mvosetmessageid: <1421659640.35.0.499518720939.issue23228@psf.upfronthosting.co.za>
2015-01-19 09:27:20mvolinkissue23228 messages
2015-01-19 09:27:19mvocreate