diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2010-04-29 15:23:38 +0000 |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2010-04-29 15:23:38 +0000 |
commit | 5c4c4619b0144684a1309de746809879b04848fa (patch) | |
tree | 08f2fcf3ff8663c649f142b71382a5e0620b8d52 /Lib/tarfile.py | |
parent | f56a288b1e59cc260372f32665a209d381be404b (diff) | |
download | cpython-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.py | 2 |
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) |