Skip to content
Snippets Groups Projects
Commit 56dd7681 authored by Seblu's avatar Seblu
Browse files

add a comment about python upstream bug

parent 89ded707
No related branches found
No related tags found
No related merge requests found
...@@ -58,12 +58,14 @@ class Tarball(tarfile.TarFile): ...@@ -58,12 +58,14 @@ class Tarball(tarfile.TarFile):
def chown(self, tarinfo, targetpath): def chown(self, tarinfo, targetpath):
''' '''
Overide real chown method from tarfile which make crazy check about Override real chown method from tarfile which make crazy check about
uid/gid before chowning. This leads to bug when a uid/gid doesn't uid/gid before chowning. This leads to bug when a uid/gid doesn't
exitsts on the running system exitsts on the running system
This overide as a sexy side effect which allow badly create tarball This overide as a sexy side effect which allow badly create tarball
(whithout --numeric-owner) to be extracted correctly (whithout --numeric-owner) to be extracted correctly
This was reported upstream: http://bugs.python.org/issue12841
''' '''
if hasattr(os, "geteuid") and os.geteuid() == 0: if hasattr(os, "geteuid") and os.geteuid() == 0:
# We have to be root to do so. # We have to be root to do so.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment