Merged revisions 80618 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r80618 | lars.gustaebel | 2010-04-29 17:37:02 +0200 (Thu, 29 Apr 2010) | 10 lines
Merged revisions 80616 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80616 | lars.gustaebel | 2010-04-29 17:23:38 +0200 (Thu, 29 Apr 2010) | 4 lines
Issue #8464: tarfile.open(name, mode="w|") no longer creates
files with execute permissions set.
........
................
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index ef316b5..125d95d 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -349,7 +349,7 @@
}[mode]
if hasattr(os, "O_BINARY"):
mode |= os.O_BINARY
- self.fd = os.open(name, mode)
+ self.fd = os.open(name, mode, 0o666)
def close(self):
os.close(self.fd)