Kaydet (Commit) a480eb91 authored tarafından Your Name's avatar Your Name

fix chmod algorithm

üst f6c30e14
...@@ -520,6 +520,7 @@ class ArchiveTar(ArchiveBase): ...@@ -520,6 +520,7 @@ class ArchiveTar(ArchiveBase):
os.chmod(tarinfo.name, tarinfo.mode) os.chmod(tarinfo.name, tarinfo.mode)
else: else:
os.lchown(tarinfo.name, 0,0) os.lchown(tarinfo.name, 0,0)
os.lchmod(tarinfo.name, tarinfo.mode)
if self.no_same_owner: if self.no_same_owner:
uid = os.getuid() uid = os.getuid()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment