[llvm-commits] [llvm] r75792 - /llvm/trunk/lib/Support/raw_ostream.cpp
Dan Gohman
gohman at apple.com
Wed Jul 15 09:39:40 PDT 2009
Author: djg
Date: Wed Jul 15 11:39:40 2009
New Revision: 75792
URL: http://llvm.org/viewvc/llvm-project?rev=75792&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=75792&r1=75791&r2=75792&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Wed Jul 15 11:39:40 2009
@@ -266,7 +266,7 @@
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;
More information about the llvm-commits
mailing list