1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

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.

llvm-svn: 75792
This commit is contained in:
Dan Gohman 2009-07-15 16:39:40 +00:00
parent 60dce4c56b
commit 60616fdb0b

View File

@ -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;