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 | 11623768451d2c6357374379cc49ecda5427ab88 (patch) | |
tree | 72af5d83e0595f62c4d2aa1528554b222695326c /Lib/tarfile.py | |
parent | e8aa727f8b816cde07445fb2d6e2d2b5b2dfe8cc (diff) | |
download | cpython-11623768451d2c6357374379cc49ecda5427ab88.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) |