[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2016-05-04 Thread Michael Vogt
Michael Vogt added the comment: Anything I can do to help moving this issue forward? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue23193] Please support numeric_owner in tarfile

2015-01-21 Thread Michael Vogt
Michael Vogt added the comment: Thanks everyone for the comments and feedback! Attached is a updated patch with tests and a documentation update. Feedback is very welcome. I decided to skip the test on systems where root is not uid,gid=0. I could also mock that of course if you prefer

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2015-01-19 Thread Michael Vogt
Michael Vogt added the comment: 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

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2015-01-13 Thread Michael Vogt
New submission from Michael Vogt: The tarfile.makelink() code crashes with a maximum recursion error when it unpacks a tarfile that contains a symlink into a directory that already contains this symlink. Attached is a standalone testcase (that probably better explains whats going

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2015-01-13 Thread Michael Vogt
Michael Vogt added the comment: A possible fix that works with the previous testcase for this bug. It does not break a tarfile tests. -- keywords: +patch Added file: http://bugs.python.org/file37689/possible-fix-37688.diff ___ Python tracker rep

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2015-01-13 Thread Michael Vogt
Michael Vogt added the comment: This patch contains a regression test as well. -- Added file: http://bugs.python.org/file37690/possible-fix-23228-with-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23228

[issue23193] Please support numeric_owner in tarfile

2015-01-08 Thread Michael Vogt
New submission from Michael Vogt: Please consider adding a option to extract a tarfile with the uid/gid instead of the lookup for uname/gname in the tarheader (i.e. what tar --numeric-owner provides). One use-case is if you unpack a chroot tarfile that contains a /etc/{passwd,group} file

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-09 Thread Michael Vogt
Michael Vogt added the comment: Thanks for this detailed explaination! I will workaround this outside of python (that is easy ;) - I just thought that it would be a good idea to be able to change the fsencoding (and therefore send the patch), but in the light of e.g. sys.path it seems

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-08 Thread Michael Vogt
New submission from Michael Vogt: The Py_FileSystemDefaultEncoding is very static right now and only set on interpreter statup AFAICT. There appears to be no way to switch that later. I think that Py_FileSystemDefaultEncoding should get updated when locale.setlocale() is run automatically