summaryrefslogtreecommitdiff
path: root/Lib/tarfile.py
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2010-04-29 15:23:38 +0000
committerLars Gustäbel <lars@gustaebel.de>2010-04-29 15:23:38 +0000
commit5c4c4619b0144684a1309de746809879b04848fa (patch)
tree08f2fcf3ff8663c649f142b71382a5e0620b8d52 /Lib/tarfile.py
parentf56a288b1e59cc260372f32665a209d381be404b (diff)
downloadcpython-git-5c4c4619b0144684a1309de746809879b04848fa.tar.gz
Issue #8464: tarfile.open(name, mode="w|") no longer creates
files with execute permissions set.
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r--Lib/tarfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 45928fdefa..b0af5b15b3 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -380,7 +380,7 @@ class _LowLevelFile:
}[mode]
if hasattr(os, "O_BINARY"):
mode |= os.O_BINARY
- self.fd = os.open(name, mode)
+ self.fd = os.open(name, mode, 0666)
def close(self):
os.close(self.fd)