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:
parent
60dce4c56b
commit
60616fdb0b
@ -266,7 +266,7 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, bool Binary,
|
|||||||
if (Binary)
|
if (Binary)
|
||||||
Flags |= O_BINARY;
|
Flags |= O_BINARY;
|
||||||
#endif
|
#endif
|
||||||
FD = open(Filename, Flags, 0644);
|
FD = open(Filename, Flags, 0664);
|
||||||
if (FD < 0) {
|
if (FD < 0) {
|
||||||
ErrorInfo = "Error opening output file '" + std::string(Filename) + "'";
|
ErrorInfo = "Error opening output file '" + std::string(Filename) + "'";
|
||||||
ShouldClose = false;
|
ShouldClose = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user