diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-15 16:39:40 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-15 16:39:40 +0000 |
commit | cb87a6d95cc3992d6eabe7145882368180871beb (patch) | |
tree | 83603513d998b6e14728866ad8ea818a90927ab7 /lib/Support | |
parent | f8b81bfe608d09be3cbe7d58718052cd6fa4355c (diff) | |
download | external_llvm-cb87a6d95cc3992d6eabe7145882368180871beb.zip external_llvm-cb87a6d95cc3992d6eabe7145882368180871beb.tar.gz external_llvm-cb87a6d95cc3992d6eabe7145882368180871beb.tar.bz2 |
Use 0664 instead of 0644 for the default open mode. This is
consistent with common std::ostream implmentations, and it gives
the user the option of using the umask group write bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/raw_ostream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index ef72501..3e1a8a9 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -266,7 +266,7 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, bool Binary, if (Binary) Flags |= O_BINARY; #endif - FD = open(Filename, Flags, 0644); + FD = open(Filename, Flags, 0664); if (FD < 0) { ErrorInfo = "Error opening output file '" + std::string(Filename) + "'"; ShouldClose = false; |