summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-16 14:10:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-16 14:10:07 +0000
commite08b59f81d950bd5c8b8528fcb3ac4230c7b736c (patch)
tree1301ed4129b46d9e176f41cef8b0b11c1867c43c /llvm/lib/Support/raw_ostream.cpp
parent5f4535b974e973d52797945fbf80f19ffba8c4ad (diff)
downloadbcm5719-llvm-e08b59f81d950bd5c8b8528fcb3ac4230c7b736c.tar.gz
bcm5719-llvm-e08b59f81d950bd5c8b8528fcb3ac4230c7b736c.zip
Create files with mode 666. This matches the behavior of other unix tools.
llvm-svn: 186414
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index 92629453583..7609b916fba 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -461,7 +461,7 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
if (Flags & F_Excl)
OpenFlags |= O_EXCL;
- while ((FD = open(Filename, OpenFlags, 0664)) < 0) {
+ while ((FD = open(Filename, OpenFlags, 0666)) < 0) {
if (errno != EINTR) {
ErrorInfo = "Error opening output file '" + std::string(Filename) + "'";
ShouldClose = false;
OpenPOWER on IntegriCloud