diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2010-04-29 15:37:02 +0000 |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2010-04-29 15:37:02 +0000 |
commit | d6eb70b7b4569cfd16f5deb42c748c439c63a008 (patch) | |
tree | 8caf490097ef53dd23205feb5bb047f0fd488b05 /Lib/tarfile.py | |
parent | ffa155ad83ac40c3eeb55cbe8fe16a304a23cfe1 (diff) | |
download | cpython-git-d6eb70b7b4569cfd16f5deb42c748c439c63a008.tar.gz |
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.
........
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 86844932a5..9ca8494fdc 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -359,7 +359,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, 0o666) def close(self): os.close(self.fd) |